<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>background</title>
	<script src="js/jquery.js"></script>
    <link href="js/bootstrap.min.css" rel="stylesheet">
    <link href="js/style.css" rel="stylesheet" type="text/css">
    <script src="js/bootstrap.min.js"></script>
</head>

<body>
<?php
include 'conn_mysql.php';
include 'sidebar.php';

$id=$_REQUEST['id'];
$difang_type=$_REQUEST['difang_type'];

$sql="SELECT * FROM `lvyou_difang_info` WHERE id='$id'";
$query = mysql_query($sql);
if(mysql_num_rows($query)<1){
}else{	
	while($row = mysql_fetch_array($query)){
		$difang_name=$row['difang_name'];
		$difang_miaoshu=$row['difang_miaoshu'];
		$biaoti=$row['biaoti'];
		$jiage=$row['jiage'];
		$jitian=$row['jitian'];
		$fanduos=$row['fanduos'];
		$picture_lujing=$row['picture_lujing'];
		$difang_type=$row['difang_type'];
		$danfangcha=$row['danfangcha'];
		
		$banqi1=$row['banqi1'];
		$chengren1=$row['chengren1'];
		$ertong1=$row['ertong1'];
		$banqi2=$row['banqi2'];
		$chengren2=$row['chengren2'];
		$ertong2=$row['ertong2'];
		$banqi3=$row['banqi3'];
		$chengren3=$row['chengren3'];
		$ertong3=$row['ertong3'];
		
		$up_renshu1=$row['up_renshu1'];
		$up_renshu2=$row['up_renshu2'];
		$up_renshu3=$row['up_renshu3'];
	}
}
?>
	<div style="width:800px;hight:100%;position:relative;left:50%;margin-left:-260px">
		<a style="float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">类型</a>
		<select id="difang_type" style="float:left;width:100px;height:25px;border-radius:5px 0px 0px 5px;border:1px solid #D6D7D7;cursor:pointer;padding-left:8px;margin:20px 0px 0px 56px;" onchange="change_difang_type();">
			<option value="0">选择类型</option>
			<option value="1">国内游</option>
			<option value="2">境外游</option>
			<option value="3">周边游</option>
		</select>
		
		<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">标题</a>
		<input  type="text" id="biaoti" style="float:left;width:461px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 56px;" placeholder="请填写项目描述" value="<? echo $biaoti;?>"></input>
		
		
		
		<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">为期几天</a>
		<input  type="text" id="jitian" style="float:left;width:80px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 28px;" placeholder="0" value="<? echo $jitian;?>"></input>
		
		<a style="float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 36px;">奖励驴币</a>
		<input  type="text" id="fanduos" style="float:left;width:80px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 7px;"  placeholder="0" value="<? echo $fanduos;?>"></input>
		
		<a style="float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 36px;">单房差</a>
		<input  type="text" id="danfangcha" style="float:left;width:100px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 21px;"  placeholder="0" value="<? echo $danfangcha;?>"></input>
		
		<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">出发班期</a>
		<input  type="text" id="banqi1" style="float:left;width:80px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 28px;" placeholder="如07/29" value="<? echo $banqi1;?>"></input>
		<a style="float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 36px;">成人价</a>
		<input  type="text" id="chengren1" style="float:left;width:80px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 21px;"  placeholder="0" value="<? echo $chengren1;?>"></input>
		<a style="float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 36px;">儿童价</a>
		<input  type="text" id="ertong1" style="float:left;width:100px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 21px;"  placeholder="0" value="<? echo $ertong1;?>"></input>
		<a style="float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 36px;">限制人数</a>
		<input  type="text" id="up_renshu1" style="float:left;width:100px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 21px;"  placeholder="0" value="<? echo $up_renshu1;?>"></input>
		
		<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">出发班期</a>
		<input  type="text" id="banqi2" style="float:left;width:80px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 28px;" placeholder="如07/29" value="<? echo $banqi2;?>"></input>
		<a style="float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 36px;">成人价</a>
		<input  type="text" id="chengren2" style="float:left;width:80px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 21px;"  placeholder="0" value="<? echo $chengren2;?>"></input>
		<a style="float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 36px;">儿童价</a>
		<input  type="text" id="ertong2" style="float:left;width:100px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 21px;"  placeholder="0" value="<? echo $ertong2;?>"></input>
		<a style="float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 36px;">限制人数</a>
		<input  type="text" id="up_renshu2" style="float:left;width:100px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 21px;"  placeholder="0" value="<? echo $up_renshu2;?>"></input>
		
		<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 20px 0px;">出发班期</a>
		<input  type="text" id="banqi3" style="float:left;width:80px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 28px;" placeholder="如07/29" value="<? echo $banqi3;?>"></input>
		<a style="float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 36px;">成人价</a>
		<input  type="text" id="chengren3" style="float:left;width:80px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 21px;"  placeholder="0" value="<? echo $chengren3;?>"></input>
		<a style="float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 36px;">儿童价</a>
		<input  type="text" id="ertong3" style="float:left;width:100px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 21px;"  placeholder="0" value="<? echo $ertong3;?>"></input>
		<a style="float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 36px;">限制人数</a>
		<input  type="text" id="up_renshu3" style="float:left;width:100px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 21px;"  placeholder="0" value="<? echo $up_renshu3;?>"></input>
		
		<input style="clear:left;width:148.5px;height:34px;border-radius:2px;background-color:#DA4713;color:#FFFFFF;font-family:微软雅黑;font-size:14px;border:1px;text-align:center; cursor:pointer;margin-top:20px;" value="确认" onclick="up_date();" ></input>
		
		<p style=";margin-top:30px;">请确认已经上传旅游项目的各项数据，再进行上传图片操作！</p>
		<!--首页图片(1张)-->
		<a style="text-align:center;color:#DA4713;font-family:微软雅黑;font-size:18px;">首页图片(1张)</a>
		<?php if(strlen($picture_lujing)==0){ ?>
		<div style="float:left;width:320px;height:150px;background-color:#FFFFFF;margin:10px 0px 0px 0px;border:1px solid #C9CACA;padding:64px 0 0 88px;">
			<input style="width:145px;height:23px;text-align:center;border:1px solid #DA4713;color:#DA4713;font-family:微软雅黑;font-size:14px;border-radius:3px;" value="选择驴行图片"></input>
			<form action="upload_file.php" method="post" enctype="multipart/form-data" id="upload_user_img">
				<label for="file" style="opacity: 0;">Filename:</label>
				<input type="file" name="file" id="file" style="width:145px;height:23px;text-align:center;border:1px solid #DA4713;color:#DA4713;font-family:微软雅黑;font-size:14px;border-radius:3px;margin-top:-48px;opacity: 0;" onchange="change_picture()"></input>
				<input name="id" id="id" value="<?php echo $id;?>" style="opacity: 0;">
				<input name="bigtype" id="bigtype" value="1" style="opacity: 0;">
			</form>
		</div>
		<?php }else{ ?>
		<div style="float:left;width:320px;height:150px;margin:10px 0px 0px 0px;background-image:url(<?php echo $picture_lujing;?>);background-repeat:repeat;background-size:100% 100%;">
		</div>
		<form action="upload_file.php" method="post" enctype="multipart/form-data" id="upload_user_img">
			<label for="file" style="opacity: 0;">Filename:</label>
			<input type="file" name="file" id="file" style="float:left;width:320px;height:150px;text-align:center;border:1px solid #DA4713;color:#DA4713;font-family:微软雅黑;font-size:14px;border-radius:3px;margin-top:25px;margin-left:-320px;opacity: 0;" onchange="change_picture()"></input>
			<input name="id" id="id" value="<?php echo $id;?>" style="opacity: 0;">
			<input name="bigtype" id="bigtype" value="1" style="opacity: 0;">
		</form>
		<?php } ?>
		
		<!--轮播图片（4张）-->
		<a style="clear:left;text-align:center;color:#DA4713;font-family:微软雅黑;font-size:18px;">轮播图片（4张）</a>
		<?php
		$i=2;
		$k=1;
		$sql="SELECT * FROM `picture_xiangmu_up` WHERE difang_id='$id' and type='1' order by id";
		$query = mysql_query($sql);
		$num=mysql_num_rows($query);
		while($row = mysql_fetch_array($query)){
			//$single_kk=$row['key'];
		?>
		<div style="float:left;width:320px;height:150px;margin:10px 0px 0px 10px;background-image:url(<?php echo $row['Picture_paht'];?>);background-repeat:repeat;background-size:100% 100%;">
			<form action="upload_file.php" method="post" enctype="multipart/form-data" id="upload_user_img<?php echo $k;?>">
				<label for="file" style="opacity: 0;">Filename:</label>
				<input type="file" name="file" id="file" style="float:left;width:320px;height:150px;text-align:center;border:1px solid #DA4713;color:#DA4713;font-family:微软雅黑;font-size:14px;border-radius:3px;margin-top:0px;margin-left:0px;opacity: 0;" onchange="change_picture<?php echo $k;?>()"></input>
				<input name="id" id="id" value="<?php echo $id;?>" style="opacity: 0;">
				<input name="bigtype<?php echo (string)($i);?>" id="bigtype<?php echo (string)($i);?>" value="2" style="opacity: 0;">
				<input name="is_add<?php echo (string)($i);?>" id="is_add<?php echo (string)($i);?>" value="<? echo $row['id'];?>" style="opacity: 0;">
			</form>
		</div>
		
		<?php
		    $i++;
			$k++;
		}
		?>
		<?php
		//补全4张图片
		for($i=0;$i<4-$num;$i++){
		?>
		<div style="float:left;width:320px;height:150px;background-color:#FFFFFF;margin:10px 0px 0px 10px;border:1px solid #C9CACA;padding:64px 0 0 88px;">
			<input style="width:145px;height:23px;text-align:center;border:1px solid #DA4713;color:#DA4713;font-family:微软雅黑;font-size:14px;border-radius:3px;" value="选择驴行图片"></input>
			<form action="upload_file.php" method="post" enctype="multipart/form-data" id="upload_user_img<?php echo $i+$num+1;?>">
				<label for="file" style="opacity: 0;">Filename:</label>
				<input type="file" name="file" id="file" style="width:145px;height:23px;text-align:center;border:1px solid #DA4713;color:#DA4713;font-family:微软雅黑;font-size:14px;border-radius:3px;margin-top:-48px;opacity: 0;" onchange="change_picture<?php echo $i+$num+1;?>()"></input>
				<input name="id" id="id" value="<?php echo $id;?>" style="opacity: 0;">
				<input name="bigtype<?php echo (string)($num+$i+2);?>" id="bigtype<?php echo (string)($num+$i+2);?>" value="2" style="opacity: 0;">
				<input name="is_add<?php echo (string)($num+$i+2);?>" id="is_add<?php echo (string)($num+$i+2);?>"  value="" style="opacity: 0;">
			</form>
		</div>
		<?php } ?>
		<SCRIPT>
		function change_picture1(){
			$("#upload_user_img1").submit();
		}
		function change_picture2(){
			$("#upload_user_img2").submit();
		}
		function change_picture3(){
			$("#upload_user_img3").submit();
		}
		function change_picture4(){
			$("#upload_user_img4").submit();
		}
		</SCRIPT>

		<?php
		//读取该项目行程特色详情
		$i=1;
		$sql="SELECT * FROM `difang_duanluo` WHERE difang_id='$id' order by youxianji";
		$query = mysql_query($sql);
		if(mysql_num_rows($query)<1){
		}else{	
			while($row = mysql_fetch_array($query)){
				if($i==1){$duanluo1=$row['duanluo'];}
				if($i==2){$duanluo2=$row['duanluo'];}
				if($i==3){$duanluo3=$row['duanluo'];}
				if($i==4){$duanluo4=$row['duanluo'];}
	
				if($i==1){$sunxv1=$row['youxianji'];}
				if($i==2){$sunxv2=$row['youxianji'];}
				if($i==3){$sunxv3=$row['youxianji'];}
				if($i==4){$sunxv4=$row['youxianji'];}
				
				$i=$i+1;
			}
		}
		?>
		<div style="clear:left;width:320px;height:30px;"></div>
		<p style="clear:left;margin-top:0px;">请确认已经上传旅游项目的各项数据，再进行上传行程特色段落操作！</p>
		<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">段落</a>
		<input  type="text" id="duanluo1" style="float:left;width:461px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 7px;" placeholder="请填写段落内容" value="<?php echo $duanluo1;?>"></input>
		<a style="float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 20px;">顺序</a>
		<input  type="text" id="sunxv1" style="float:left;width:170px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 7px;" placeholder="数字越小，越优先显示" value="<?php echo $sunxv1;?>"></input>
		
		<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">段落</a>
		<input  type="text" id="duanluo2" style="float:left;width:461px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 7px;" placeholder="请填写段落内容" value="<?php echo $duanluo2;?>"></input>
		<a style="float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 20px;">顺序</a>
		<input  type="text" id="sunxv2" style="float:left;width:170px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 7px;" placeholder="数字越小，越优先显示" value="<?php echo $sunxv2;?>"></input>
		
		<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">段落</a>
		<input  type="text" id="duanluo3" style="float:left;width:461px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 7px;" placeholder="请填写段落内容" value="<?php echo $duanluo3;?>"></input>
		<a style="float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 20px;">顺序</a>
		<input  type="text" id="sunxv3" style="float:left;width:170px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 7px;" placeholder="数字越小，越优先显示" value="<?php echo $sunxv3;?>"></input>
		
		<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">段落</a>
		<input  type="text" id="duanluo4" style="float:left;width:461px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 7px;" placeholder="请填写段落内容" value="<?php echo $duanluo4;?>"></input>
		<a style="float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 20px;">顺序</a>
		<input  type="text" id="sunxv4" style="float:left;width:170px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 7px;" placeholder="数字越小，越优先显示" value="<?php echo $sunxv4;?>"></input>
		<div style="clear:left;width:320px;height:20px;"></div>
		<input style="clear:left;width:148.5px;height:34px;border-radius:2px;background-color:#DA4713;color:#FFFFFF;font-family:微软雅黑;font-size:14px;border:1px;text-align:center; cursor:pointer;margin-top:0px;" value="确认" onclick="up_date_tese();" ></input>
		
		<div style="clear:left;width:320px;height:30px;"></div>
		<p style="clear:left;margin-top:0px;">请确认已经上传旅游项目的各项数据，再进行上传活动行程！</p>
		<?php 
		if($difang_type==3){
			//查询段落信息
			$sql="SELECT * FROM `xingcheng_duanluo` WHERE difang_id='$id' order by id";
			$query = mysql_query($sql);
			if(mysql_num_rows($query)<1){
			}else{	
				while($row = mysql_fetch_array($query)){
					$id_zhishen        =$row['id'];
					$xingcheng_duanluo1=$row['xingcheng_dduanluo1'];
					$xingcheng_duanluo2=$row['xingcheng_dduanluo2'];
					$xingcheng_duanluo3=$row['xingcheng_dduanluo3'];
					$xingcheng_duanluo4=$row['xingcheng_dduanluo4'];
				}
			}
		?>
		<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">段落1</a>
		<input  type="text" id="xingcheng_duanluo1" style="float:left;width:461px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 7px;" placeholder="请填写段落内容" value="<?php echo $xingcheng_duanluo1;?>"></input>

		
		<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">段落2</a>
		<input  type="text" id="xingcheng_duanluo2" style="float:left;width:461px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 7px;" placeholder="请填写段落内容" value="<?php echo $xingcheng_duanluo2;?>"></input>
		
		
		<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">段落3</a>
		<input  type="text" id="xingcheng_duanluo3" style="float:left;width:461px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 7px;" placeholder="请填写段落内容" value="<?php echo $xingcheng_duanluo3;?>"></input>
		
		
		<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">段落4</a>
		<input  type="text" id="xingcheng_duanluo4" style="float:left;width:461px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 7px;" placeholder="请填写段落内容" value="<?php echo $xingcheng_duanluo4;?>"></input>
		
		<a style="opacity:0;" id="id_zhishen_duanluo"><?php echo $id_zhishen;?></a>
		<div style="clear:left;width:320px;height:20px;"></div>
		<input style="clear:left;width:148.5px;height:34px;border-radius:2px;background-color:#DA4713;color:#FFFFFF;font-family:微软雅黑;font-size:14px;border:1px;text-align:center; cursor:pointer;margin-top:0px;" value="确认" onclick="up_date_xingcheng_duanluo_12();" ></input>
			
		<a style="text-align:center;color:#ff0000;font-family:微软雅黑;font-size:18px;">行程活动所附图片及描述</a>
			<?php
		$i=1;
		$k=1;
		$sql="SELECT * FROM `picture_day_info` WHERE difang_id='$id' and type='2' order by id";
		$query = mysql_query($sql);
		$num=mysql_num_rows($query);
		while($row = mysql_fetch_array($query)){
			if($i==1){
				$tupianmiaoshu21=$row['picture_miaoshu'];
			}
			if($i==2){
				$tupianmiaoshu22=$row['picture_miaoshu'];
			}
			if($i==3){
				$tupianmiaoshu23=$row['picture_miaoshu'];
			}
			if($i==4){
				$tupianmiaoshu24=$row['picture_miaoshu'];
			}
			if($i==5){
				$tupianmiaoshu25=$row['picture_miaoshu'];
			}
			if($i==6){
				$tupianmiaoshu26=$row['picture_miaoshu'];
			}
			
			//$single_kk=$row['key'];
		?>
		<div style="float:left;width:320px;height:150px;margin:10px 0px 0px 10px;background-image:url(<?php echo $row['picture_path'];?>);background-repeat:repeat;background-size:100% 100%;">
			<form action="upload_file1.php" method="post" enctype="multipart/form-data" id="upload_user_img100<?php echo $k;?>">
				<label for="file" style="opacity: 0;">Filename:</label>
				<input type="file" name="file" id="file" style="float:left;width:320px;height:150px;text-align:center;border:1px solid #DA4713;color:#DA4713;font-family:微软雅黑;font-size:14px;border-radius:3px;margin-top:0px;margin-left:0px;opacity: 0;" onchange="change_picture100<?php echo $k;?>()"></input>
				<input name="id" value="<?php echo $id;?>" style="opacity: 0;">
				<input name="bigtype1000<?php echo (string)($i);?>" value="1" style="opacity: 0;">
				<input name="is_add1000<?php echo (string)($i);?>"  value="<? echo $row['id'];?>" style="opacity: 0;">
				<input name="day1000<?php echo (string)($i);?>"  value="" style="opacity: 0;">
			</form>
		</div>
		
		<?php
		    $i++;
			$k++;
		}
		?>
		<?php
		//补全3张图片
		for($i=0;$i<6-$num;$i++){
		?>
		<div style="float:left;width:320px;height:150px;background-color:#FFFFFF;margin:10px 0px 0px 10px;border:1px solid #C9CACA;padding:64px 0 0 88px;">
			<input style="width:145px;height:23px;text-align:center;border:1px solid #DA4713;color:#DA4713;font-family:微软雅黑;font-size:14px;border-radius:3px;" value="选择驴行图片"></input>
			<form action="upload_file1.php" method="post" enctype="multipart/form-data" id="upload_user_img100<?php echo $i+$num+1;?>">
				<label for="file" style="opacity: 0;">Filename:</label>
				<input type="file" name="file" id="file" style="width:145px;height:23px;text-align:center;border:1px solid #DA4713;color:#DA4713;font-family:微软雅黑;font-size:14px;border-radius:3px;margin-top:-48px;opacity: 0;" onchange="change_picture100<?php echo $i+$num+1;?>()"></input>
				<input name="id"  value="<?php echo $id;?>" style="opacity: 0;">
				<input name="bigtype1000<?php echo (string)($num+$i+1);?>" value="1" style="opacity: 0;">
				<input name="is_add1000<?php echo (string)($num+$i+1);?>"  value="<?php $row['id'];?>" style="opacity: 0;">
				<input name="day1000<?php echo (string)($num+$i+1);?>"  value="" style="opacity: 0;">
			</form>
		</div>
		<?php } ?>
		
		<SCRIPT>
		function change_picture1001(){
			$("#upload_user_img1001").submit();
		}
		function change_picture1002(){
			$("#upload_user_img1002").submit();
		}
		function change_picture1003(){
			$("#upload_user_img1003").submit();
		}
		</SCRIPT>
		<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">图片描述1</a>
		<input  type="text" id="tupianmiaoshu21" style="float:left;width:350px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 79px;" placeholder="请填写行程标题" value="<?php echo $tupianmiaoshu21;?>"></input>	
		<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">图片描述2</a>
		<input  type="text" id="tupianmiaoshu22" style="float:left;width:350px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 79px;" placeholder="请填写行程标题" value="<?php echo $tupianmiaoshu22;?>"></input>	
		<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">图片描述3</a>
		<input  type="text" id="tupianmiaoshu23" style="float:left;width:350px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 79px;" placeholder="请填写行程标题" value="<?php echo $tupianmiaoshu23;?>"></input>	
		<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">图片描述4</a>
		<input  type="text" id="tupianmiaoshu24" style="float:left;width:350px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 79px;" placeholder="请填写行程标题" value="<?php echo $tupianmiaoshu24;?>"></input>	
		<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">图片描述5</a>
		<input  type="text" id="tupianmiaoshu25" style="float:left;width:350px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 79px;" placeholder="请填写行程标题" value="<?php echo $tupianmiaoshu25;?>"></input>	
		<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">图片描述6</a>
		<input  type="text" id="tupianmiaoshu26" style="float:left;width:350px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 79px;" placeholder="请填写行程标题" value="<?php echo $tupianmiaoshu26;?>"></input>	
		<div style="clear:left;width:320px;height:20px;"></div>
		<input style="clear:left;width:148.5px;height:34px;border-radius:2px;background-color:#DA4713;color:#FFFFFF;font-family:微软雅黑;font-size:14px;border:1px;text-align:center; cursor:pointer;margin-top:0px;" value="确认" onclick="up_day_picture_100();" ></input>
		<SCRIPT>
		function up_day_picture_100(){
			tupianmiaoshu21=document.getElementById("tupianmiaoshu21").value;
			tupianmiaoshu22=document.getElementById("tupianmiaoshu22").value;
			tupianmiaoshu23=document.getElementById("tupianmiaoshu23").value;
			tupianmiaoshu24=document.getElementById("tupianmiaoshu24").value;
			tupianmiaoshu25=document.getElementById("tupianmiaoshu25").value;
			tupianmiaoshu26=document.getElementById("tupianmiaoshu26").value;
			
			var url="getmessage_all.php?bigtype=22&id=<?php echo $id;?>";
			url=url+"&tupianmiaoshu21="+tupianmiaoshu21;
			url=url+"&tupianmiaoshu22="+tupianmiaoshu22;
			url=url+"&tupianmiaoshu23="+tupianmiaoshu23;
			url=url+"&tupianmiaoshu24="+tupianmiaoshu24;
			url=url+"&tupianmiaoshu25="+tupianmiaoshu25;
			url=url+"&tupianmiaoshu26="+tupianmiaoshu26;
			//alert(url);
			$.ajax({
				type:"GET",
				url:url,
				dataType: "json",
				success: function(data){	
					if(data['code']==0001){
						alert(data['reason']);
						window.location.href='index.php?id='+data['id'];  
					}else{
						alert(data['reason']);
					}
				}
			});
			
		}
		</SCRIPT>
		
			
			
		
		<?php }else{ ?>
			<a style="float:left;color:#ff0000;font-family:微软雅黑;font-size:15px;margin-left:5px;cursor:pointer;" onclick="for(i=1;i<15;i++){document.getElementById('day'+i).style.display='none';}document.getElementById('day1').style.display='';">第一天</a>
			<a style="float:left;color:#ff0000;font-family:微软雅黑;font-size:15px;margin-left:5px;cursor:pointer;" onclick="for(i=1;i<15;i++){document.getElementById('day'+i).style.display='none';}document.getElementById('day2').style.display='';">第二天</a>
			<a style="float:left;color:#ff0000;font-family:微软雅黑;font-size:15px;margin-left:5px;cursor:pointer;" onclick="for(i=1;i<15;i++){document.getElementById('day'+i).style.display='none';}document.getElementById('day3').style.display='';">第三天</a>
			<a style="float:left;color:#ff0000;font-family:微软雅黑;font-size:15px;margin-left:5px;cursor:pointer;" onclick="for(i=1;i<15;i++){document.getElementById('day'+i).style.display='none';}document.getElementById('day4').style.display='';">第四天</a>
			<a style="float:left;color:#ff0000;font-family:微软雅黑;font-size:15px;margin-left:5px;cursor:pointer;" onclick="for(i=1;i<15;i++){document.getElementById('day'+i).style.display='none';}document.getElementById('day5').style.display='';">第五天</a>
			<a style="float:left;color:#ff0000;font-family:微软雅黑;font-size:15px;margin-left:5px;cursor:pointer;" onclick="for(i=1;i<15;i++){document.getElementById('day'+i).style.display='none';}document.getElementById('day6').style.display='';">第六天</a>
			<a style="float:left;color:#ff0000;font-family:微软雅黑;font-size:15px;margin-left:5px;cursor:pointer;" onclick="for(i=1;i<15;i++){document.getElementById('day'+i).style.display='none';}document.getElementById('day7').style.display='';">第七天</a>
			<a style="float:left;color:#ff0000;font-family:微软雅黑;font-size:15px;margin-left:5px;cursor:pointer;" onclick="for(i=1;i<15;i++){document.getElementById('day'+i).style.display='none';}document.getElementById('day8').style.display='';">第八天</a>
			<a style="float:left;color:#ff0000;font-family:微软雅黑;font-size:15px;margin-left:5px;cursor:pointer;" onclick="for(i=1;i<15;i++){document.getElementById('day'+i).style.display='none';}document.getElementById('day9').style.display='';">第九天</a>
			<a style="float:left;color:#ff0000;font-family:微软雅黑;font-size:15px;margin-left:5px;cursor:pointer;" onclick="for(i=1;i<15;i++){document.getElementById('day'+i).style.display='none';}document.getElementById('day10').style.display='';">第十天</a>
			<a style="float:left;color:#ff0000;font-family:微软雅黑;font-size:15px;margin-left:5px;cursor:pointer;" onclick="for(i=1;i<15;i++){document.getElementById('day'+i).style.display='none';}document.getElementById('day11').style.display='';">第十一天</a>
			<a style="float:left;color:#ff0000;font-family:微软雅黑;font-size:15px;margin-left:5px;cursor:pointer;" onclick="for(i=1;i<15;i++){document.getElementById('day'+i).style.display='none';}document.getElementById('day12').style.display='';">第十二天</a>
			<a style="float:left;color:#ff0000;font-family:微软雅黑;font-size:15px;margin-left:5px;cursor:pointer;" onclick="for(i=1;i<15;i++){document.getElementById('day'+i).style.display='none';}document.getElementById('day13').style.display='';">第十三天</a>
			<a style="float:left;color:#ff0000;font-family:微软雅黑;font-size:15px;margin-left:5px;cursor:pointer;" onclick="for(i=1;i<15;i++){document.getElementById('day'+i).style.display='none';}document.getElementById('day14').style.display='';">第十四天</br></a>
			
			
			<div id="day1" style="display:none">
				<a style="clear:left;text-align:center;color:#ff0000;font-family:微软雅黑;font-size:18px;">第一天</a>
				<?php 
				//查询第一天信息
				$sql="SELECT * FROM `xingcheng_day_info` WHERE difang_id='$id' and day='1'";
				$query = mysql_query($sql);
				while($row = mysql_fetch_array($query)){
					$zisheng_id1          =  $row['id'];
					$xingcheng1_biaoti    =  $row['biaoti'];
					$xingcheng1_type1     =  $row['tubiao_type1'];
					$xingcheng1_nairong1  =  $row['nairong1'];
					$xingcheng1_type2     =  $row['tubiao_type2'];
					$xingcheng1_nairong2  =  $row['nairong2'];
					$xingcheng1_type3     =  $row['tubiao_type3'];
					$xingcheng1_nairong3  =  $row['nairong3'];
					$xingcheng1_type4     =  $row['tubiao_type4'];
					$xingcheng1_nairong4  =  $row['nairong4'];
				}
				
				?>
				<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">标题</a>
				<input  type="text" id="xingcheng1_biaoti" style="float:left;width:350px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 79px;" placeholder="请填写行程标题" value="<?php echo $xingcheng1_biaoti;?>"></input>

				<select id="xingcheng1_type1" style="clear:left;float:left;width:100px;height:25px;border-radius:5px 0px 0px 5px;border:1px solid #D6D7D7;cursor:pointer;padding-left:8px;margin:20px 0px 0px 0px;">
					<option value="0">选择类型</option>
					<option value="2">交通</option>
					<option value="4">行程</option>
					<option value="3">住宿</option>
					<option value="5">餐饮</option>
				</select>
				<input  type="text" id="xingcheng1_nairong1" style="float:left;width:610px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 7px;" placeholder="请填写内容" value="<?php echo $xingcheng1_nairong1;?>"></input>
				
				<select id="xingcheng1_type2" style="clear:left;float:left;width:100px;height:25px;border-radius:5px 0px 0px 5px;border:1px solid #D6D7D7;cursor:pointer;padding-left:8px;margin:20px 0px 0px 0px;">
					<option value="0">选择类型</option>
					<option value="2">交通</option>
					<option value="4">行程</option>
					<option value="3">住宿</option>
					<option value="5">餐饮</option>
				</select>
				<input  type="text" id="xingcheng1_nairong2" style="float:left;width:610px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 7px;" placeholder="请填写内容" value="<?php echo $xingcheng1_nairong2;?>"></input>
				
				<select id="xingcheng1_type3" style="clear:left;float:left;width:100px;height:25px;border-radius:5px 0px 0px 5px;border:1px solid #D6D7D7;cursor:pointer;padding-left:8px;margin:20px 0px 0px 0px;">
					<option value="0">选择类型</option>
					<option value="2">交通</option>
					<option value="4">行程</option>
					<option value="3">住宿</option>
					<option value="5">餐饮</option>
				</select>
				<input  type="text" id="xingcheng1_nairong3" style="float:left;width:610px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 7px;" placeholder="请填写内容" value="<?php echo $xingcheng1_nairong3;?>"></input>
				
				<select id="xingcheng1_type4" style="clear:left;float:left;width:100px;height:25px;border-radius:5px 0px 0px 5px;border:1px solid #D6D7D7;cursor:pointer;padding-left:8px;margin:20px 0px 0px 0px;">
					<option value="0">选择类型</option>
					<option value="2">交通</option>
					<option value="4">行程</option>
					<option value="3">住宿</option>
					<option value="5">餐饮</option>
				</select>
				<input  type="text" id="xingcheng1_nairong4" style="float:left;width:610px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 7px;" placeholder="请填写内容" value="<?php echo $xingcheng1_nairong4;?>"></input>
				
				<a style="opacity:0;" id="zisheng_id1"><?php echo $zisheng_id1;?></a><!--自身id标识段，这个很重要-->
				
				<div style="clear:left;width:320px;height:20px;"></div>
				<input style="clear:left;width:148.5px;height:34px;border-radius:2px;background-color:#DA4713;color:#FFFFFF;font-family:微软雅黑;font-size:14px;border:1px;text-align:center; cursor:pointer;margin-top:0px;" value="确认" onclick="up_day_one();" ></input>
				
				<a style="text-align:center;color:#ff0000;font-family:微软雅黑;font-size:18px;">第一天所附图片及描述</a>
				<?php
			$i=1;
			$k=1;
			$sql="SELECT * FROM `picture_day_info` WHERE difang_id='$id' and type='1' and day='1' order by id";
			$query = mysql_query($sql);
			$num=mysql_num_rows($query);
			while($row = mysql_fetch_array($query)){
				if($i==1){
					$tupianmiaoshu11=$row['picture_miaoshu'];
				}
				if($i==2){
					$tupianmiaoshu12=$row['picture_miaoshu'];
				}
				if($i==3){
					$tupianmiaoshu13=$row['picture_miaoshu'];
				}
				//$single_kk=$row['key'];
			?>
			<div style="float:left;width:320px;height:150px;margin:10px 0px 0px 10px;background-image:url(<?php echo $row['picture_path'];?>);background-repeat:repeat;background-size:100% 100%;">
				<form action="upload_file1.php" method="post" enctype="multipart/form-data" id="upload_user_img2<?php echo $k;?>">
					<label for="file" style="opacity: 0;">Filename:</label>
					<input type="file" name="file" id="file" style="float:left;width:320px;height:150px;text-align:center;border:1px solid #DA4713;color:#DA4713;font-family:微软雅黑;font-size:14px;border-radius:3px;margin-top:0px;margin-left:0px;opacity: 0;" onchange="change_picture2<?php echo $k;?>()"></input>
					<input name="id" value="<?php echo $id;?>" style="opacity: 0;">
					<input name="bigtype10<?php echo (string)($i);?>" value="1" style="opacity: 0;">
					<input name="is_add10<?php echo (string)($i);?>"  value="<? echo $row['id'];?>" style="opacity: 0;">
					<input name="day10<?php echo (string)($i);?>"  value="1" style="opacity: 0;">
				</form>
			</div>
			
			<?php
				$i++;
				$k++;
			}
			?>
			<?php
			//补全3张图片
			for($i=0;$i<3-$num;$i++){
			?>
			<div style="float:left;width:320px;height:150px;background-color:#FFFFFF;margin:10px 0px 0px 10px;border:1px solid #C9CACA;padding:64px 0 0 88px;">
				<input style="width:145px;height:23px;text-align:center;border:1px solid #DA4713;color:#DA4713;font-family:微软雅黑;font-size:14px;border-radius:3px;" value="选择驴行图片"></input>
				<form action="upload_file1.php" method="post" enctype="multipart/form-data" id="upload_user_img2<?php echo $i+$num+1;?>">
					<label for="file" style="opacity: 0;">Filename:</label>
					<input type="file" name="file" id="file" style="width:145px;height:23px;text-align:center;border:1px solid #DA4713;color:#DA4713;font-family:微软雅黑;font-size:14px;border-radius:3px;margin-top:-48px;opacity: 0;" onchange="change_picture2<?php echo $i+$num+1;?>()"></input>
					<input name="id"  value="<?php echo $id;?>" style="opacity: 0;">
					<input name="bigtype10<?php echo (string)($num+$i+1);?>" value="1" style="opacity: 0;">
					<input name="is_add10<?php echo (string)($num+$i+1);?>"  value="<?php $row['id'];?>" style="opacity: 0;">
					<input name="day10<?php echo (string)($num+$i+1);?>"  value="1" style="opacity: 0;">
				</form>
			</div>
			<?php } ?>
			
			<SCRIPT>
			function change_picture21(){
				$("#upload_user_img21").submit();
			}
			function change_picture22(){
				$("#upload_user_img22").submit();
			}
			function change_picture23(){
				$("#upload_user_img23").submit();
			}
			</SCRIPT>
			<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">图片描述1</a>
			<input  type="text" id="tupianmiaoshu11" style="float:left;width:350px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 79px;" placeholder="请填写行程标题" value="<?php echo $tupianmiaoshu11;?>"></input>	
			<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">图片描述2</a>
			<input  type="text" id="tupianmiaoshu12" style="float:left;width:350px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 79px;" placeholder="请填写行程标题" value="<?php echo $tupianmiaoshu12;?>"></input>	
			<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">图片描述3</a>
			<input  type="text" id="tupianmiaoshu13" style="float:left;width:350px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 79px;" placeholder="请填写行程标题" value="<?php echo $tupianmiaoshu13;?>"></input>	
			<div style="clear:left;width:320px;height:20px;"></div>
			<input style="clear:left;width:148.5px;height:34px;border-radius:2px;background-color:#DA4713;color:#FFFFFF;font-family:微软雅黑;font-size:14px;border:1px;text-align:center; cursor:pointer;margin-top:0px;" value="确认" onclick="up_day_picture_1();" ></input>
			<input id="day_biaoshi_11" value="1" style="opacity:0;">
		</div>
		<SCRIPT>
		function up_day_picture_1(){
			day_biaoshi=document.getElementById("day_biaoshi_11").value;
			tupianmiaoshu11=document.getElementById("tupianmiaoshu11").value;
			tupianmiaoshu12=document.getElementById("tupianmiaoshu12").value;
			tupianmiaoshu13=document.getElementById("tupianmiaoshu13").value;
			
			var url="getmessage_all.php?bigtype=19&id=<?php echo $id;?>";
			url=url+"&day_biaoshi="+day_biaoshi;
			url=url+"&tupianmiaoshu11="+tupianmiaoshu11;
			url=url+"&tupianmiaoshu12="+tupianmiaoshu12;
			url=url+"&tupianmiaoshu13="+tupianmiaoshu13;
			//alert(url);
			$.ajax({
				type:"GET",
				url:url,
				dataType: "json",
				success: function(data){	
					if(data['code']==0001){
						alert(data['reason']);
						window.location.href='index.php?id='+data['id'];  
					}else{
						alert(data['reason']);
					}
				}
			});
			
		}
		</SCRIPT>
			
			
			<!--------------------------------------------------第二天----------------------------------------------->
			<div id="day2" style="display:none">
			<a style="clear:left;text-align:center;color:#ff0000;font-family:微软雅黑;font-size:18px;">第二天</a>
			<?php 
			//查询第二天信息
			$sql="SELECT * FROM `xingcheng_day_info` WHERE difang_id='$id' and day='2'";
			$query = mysql_query($sql);
			while($row = mysql_fetch_array($query)){
				$zisheng_id2          =  $row['id'];
				$xingcheng2_biaoti    =  $row['biaoti'];
				$xingcheng2_type1     =  $row['tubiao_type1'];
				$xingcheng2_nairong1  =  $row['nairong1'];
				$xingcheng2_type2     =  $row['tubiao_type2'];
				$xingcheng2_nairong2  =  $row['nairong2'];
				$xingcheng2_type3     =  $row['tubiao_type3'];
				$xingcheng2_nairong3  =  $row['nairong3'];
				$xingcheng2_type4     =  $row['tubiao_type4'];
				$xingcheng2_nairong4  =  $row['nairong4'];
			}
			
			?>
			<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">标题</a>
			<input  type="text" id="xingcheng2_biaoti" style="float:left;width:350px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 79px;" placeholder="请填写行程标题" value="<?php echo $xingcheng2_biaoti;?>"></input>

			<select id="xingcheng2_type1" style="clear:left;float:left;width:100px;height:25px;border-radius:5px 0px 0px 5px;border:1px solid #D6D7D7;cursor:pointer;padding-left:8px;margin:20px 0px 0px 0px;">
				<option value="0">选择类型</option>
				<option value="2">交通</option>
				<option value="4">行程</option>
				<option value="3">住宿</option>
				<option value="5">餐饮</option>
			</select>
			<input  type="text" id="xingcheng2_nairong1" style="float:left;width:610px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 7px;" placeholder="请填写内容" value="<?php echo $xingcheng2_nairong1;?>"></input>
			
			<select id="xingcheng2_type2" style="clear:left;float:left;width:100px;height:25px;border-radius:5px 0px 0px 5px;border:1px solid #D6D7D7;cursor:pointer;padding-left:8px;margin:20px 0px 0px 0px;">
				<option value="0">选择类型</option>
				<option value="2">交通</option>
				<option value="4">行程</option>
				<option value="3">住宿</option>
				<option value="5">餐饮</option>
			</select>
			<input  type="text" id="xingcheng2_nairong2" style="float:left;width:610px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 7px;" placeholder="请填写内容" value="<?php echo $xingcheng2_nairong2;?>"></input>
			
			<select id="xingcheng2_type3" style="clear:left;float:left;width:100px;height:25px;border-radius:5px 0px 0px 5px;border:1px solid #D6D7D7;cursor:pointer;padding-left:8px;margin:20px 0px 0px 0px;">
				<option value="0">选择类型</option>
				<option value="2">交通</option>
				<option value="4">行程</option>
				<option value="3">住宿</option>
				<option value="5">餐饮</option>
			</select>
			<input  type="text" id="xingcheng2_nairong3" style="float:left;width:610px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 7px;" placeholder="请填写内容" value="<?php echo $xingcheng2_nairong3;?>"></input>
			
			<select id="xingcheng2_type4" style="clear:left;float:left;width:100px;height:25px;border-radius:5px 0px 0px 5px;border:1px solid #D6D7D7;cursor:pointer;padding-left:8px;margin:20px 0px 0px 0px;">
				<option value="0">选择类型</option>
				<option value="2">交通</option>
				<option value="4">行程</option>
				<option value="3">住宿</option>
				<option value="5">餐饮</option>
			</select>
			<input  type="text" id="xingcheng2_nairong4" style="float:left;width:610px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 7px;" placeholder="请填写内容" value="<?php echo $xingcheng2_nairong4;?>"></input>
			
			<a style="opacity:0;" id="zisheng_id2"><?php echo $zisheng_id2;?></a><!--自身id标识段，这个很重要-->
			
			<div style="clear:left;width:320px;height:20px;"></div>
			<input style="clear:left;width:148.5px;height:34px;border-radius:2px;background-color:#DA4713;color:#FFFFFF;font-family:微软雅黑;font-size:14px;border:1px;text-align:center; cursor:pointer;margin-top:0px;" value="确认" onclick="up_day_two();" ></input>
			
			<a style="text-align:center;color:#ff0000;font-family:微软雅黑;font-size:18px;">第二天所附图片及描述</a>
			<?php
		$i=1;
		$k=1;
		$sql="SELECT * FROM `picture_day_info` WHERE difang_id='$id' and type='1' and day='2' order by id";
		$query = mysql_query($sql);
		$num=mysql_num_rows($query);
		while($row = mysql_fetch_array($query)){
			if($i==1){
				$tupianmiaoshu21=$row['picture_miaoshu'];
			}
			if($i==2){
				$tupianmiaoshu22=$row['picture_miaoshu'];
			}
			if($i==3){
				$tupianmiaoshu23=$row['picture_miaoshu'];
			}
			//$single_kk=$row['key'];
		?>
		<div style="float:left;width:320px;height:150px;margin:10px 0px 0px 10px;background-image:url(<?php echo $row['picture_path'];?>);background-repeat:repeat;background-size:100% 100%;">
			<form action="upload_file1.php" method="post" enctype="multipart/form-data" id="upload_user_img3<?php echo $k;?>">
				<label for="file" style="opacity: 0;">Filename:</label>
				<input type="file" name="file" id="file" style="float:left;width:320px;height:150px;text-align:center;border:1px solid #DA4713;color:#DA4713;font-family:微软雅黑;font-size:14px;border-radius:3px;margin-top:0px;margin-left:0px;opacity: 0;" onchange="change_picture3<?php echo $k;?>()"></input>
				<input name="id" value="<?php echo $id;?>" style="opacity: 0;">
				<input name="bigtype11<?php echo (string)($i);?>" value="1" style="opacity: 0;">
				<input name="is_add11<?php echo (string)($i);?>"  value="<? echo $row['id'];?>" style="opacity: 0;">
				<input name="day11<?php echo (string)($i);?>"  value="2" style="opacity: 0;">
			</form>
		</div>
		
		<?php
		    $i++;
			$k++;
		}
		?>
		<?php
		//补全3张图片
		for($i=0;$i<3-$num;$i++){
		?>
		<div style="float:left;width:320px;height:150px;background-color:#FFFFFF;margin:10px 0px 0px 10px;border:1px solid #C9CACA;padding:64px 0 0 88px;">
			<input style="width:145px;height:23px;text-align:center;border:1px solid #DA4713;color:#DA4713;font-family:微软雅黑;font-size:14px;border-radius:3px;" value="选择驴行图片"></input>
			<form action="upload_file1.php" method="post" enctype="multipart/form-data" id="upload_user_img3<?php echo $i+$num+1;?>">
				<label for="file" style="opacity: 0;">Filename:</label>
				<input type="file" name="file" id="file" style="width:145px;height:23px;text-align:center;border:1px solid #DA4713;color:#DA4713;font-family:微软雅黑;font-size:14px;border-radius:3px;margin-top:-48px;opacity: 0;" onchange="change_picture3<?php echo $i+$num+1;?>()"></input>
				<input name="id"  value="<?php echo $id;?>" style="opacity: 0;">
				<input name="bigtype11<?php echo (string)($num+$i+1);?>" value="1" style="opacity: 0;">
				<input name="is_add11<?php echo (string)($num+$i+1);?>"  value="<?php $row['id'];?>" style="opacity: 0;">
				<input name="day11<?php echo (string)($num+$i+1);?>"  value="2" style="opacity: 0;">
			</form>
		</div>
		<?php } ?>
		
		<SCRIPT>
		function change_picture31(){
			$("#upload_user_img31").submit();
		}
		function change_picture32(){
			$("#upload_user_img32").submit();
		}
		function change_picture33(){
			$("#upload_user_img33").submit();
		}
		</SCRIPT>
		<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">图片描述1</a>
		<input  type="text" id="tupianmiaoshu21" style="float:left;width:350px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 79px;" placeholder="请填写行程标题" value="<?php echo $tupianmiaoshu21;?>"></input>	
		<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">图片描述2</a>
		<input  type="text" id="tupianmiaoshu22" style="float:left;width:350px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 79px;" placeholder="请填写行程标题" value="<?php echo $tupianmiaoshu22;?>"></input>	
		<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">图片描述3</a>
		<input  type="text" id="tupianmiaoshu23" style="float:left;width:350px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 79px;" placeholder="请填写行程标题" value="<?php echo $tupianmiaoshu23;?>"></input>	
		<div style="clear:left;width:320px;height:20px;"></div>
		<input style="clear:left;width:148.5px;height:34px;border-radius:2px;background-color:#DA4713;color:#FFFFFF;font-family:微软雅黑;font-size:14px;border:1px;text-align:center; cursor:pointer;margin-top:0px;" value="确认" onclick="up_day_picture_2();" ></input>
		<input id="day_biaoshi_21" value="2" style="opacity:0;">
		</div>
		<SCRIPT>
		function up_day_picture_2(){
			day_biaoshi=document.getElementById("day_biaoshi_21").value;
			tupianmiaoshu11=document.getElementById("tupianmiaoshu21").value;
			tupianmiaoshu12=document.getElementById("tupianmiaoshu22").value;
			tupianmiaoshu13=document.getElementById("tupianmiaoshu23").value;
			
			var url="getmessage_all.php?bigtype=19&id=<?php echo $id;?>";
			url=url+"&day_biaoshi="+day_biaoshi;
			url=url+"&tupianmiaoshu11="+tupianmiaoshu11;
			url=url+"&tupianmiaoshu12="+tupianmiaoshu12;
			url=url+"&tupianmiaoshu13="+tupianmiaoshu13;
			$.ajax({
				type:"GET",
				url:url,
				dataType: "json",
				success: function(data){	
					if(data['code']==0001){
						alert(data['reason']);
						window.location.href='index.php?id='+data['id'];  
					}else{
						alert(data['reason']);
					}
				}
			});
			
		}
		</SCRIPT>
			
			
			<!--------------------------------------------------第三天----------------------------------------------->
			<div id="day3" style="display:none">
			<a style="clear:left;text-align:center;color:#ff0000;font-family:微软雅黑;font-size:18px;">第三天</a>
			<?php 
			//查询第三天信息
			$sql="SELECT * FROM `xingcheng_day_info` WHERE difang_id='$id' and day='3'";
			$query = mysql_query($sql);
			while($row = mysql_fetch_array($query)){
				$zisheng_id3          =  $row['id'];
				$xingcheng3_biaoti    =  $row['biaoti'];
				$xingcheng3_type1     =  $row['tubiao_type1'];
				$xingcheng3_nairong1  =  $row['nairong1'];
				$xingcheng3_type2     =  $row['tubiao_type2'];
				$xingcheng3_nairong2  =  $row['nairong2'];
				$xingcheng3_type3     =  $row['tubiao_type3'];
				$xingcheng3_nairong3  =  $row['nairong3'];
				$xingcheng3_type4     =  $row['tubiao_type4'];
				$xingcheng3_nairong4  =  $row['nairong4'];
			}
			
			?>
			<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">标题</a>
			<input  type="text" id="xingcheng3_biaoti" style="float:left;width:350px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 79px;" placeholder="请填写行程标题" value="<?php echo $xingcheng3_biaoti;?>"></input>

			<select id="xingcheng3_type1" style="clear:left;float:left;width:100px;height:25px;border-radius:5px 0px 0px 5px;border:1px solid #D6D7D7;cursor:pointer;padding-left:8px;margin:20px 0px 0px 0px;">
				<option value="0">选择类型</option>
				<option value="2">交通</option>
				<option value="4">行程</option>
				<option value="3">住宿</option>
				<option value="5">餐饮</option>
			</select>
			<input  type="text" id="xingcheng3_nairong1" style="float:left;width:610px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 7px;" placeholder="请填写内容" value="<?php echo $xingcheng3_nairong1;?>"></input>
			
			<select id="xingcheng3_type2" style="clear:left;float:left;width:100px;height:25px;border-radius:5px 0px 0px 5px;border:1px solid #D6D7D7;cursor:pointer;padding-left:8px;margin:20px 0px 0px 0px;">
				<option value="0">选择类型</option>
				<option value="2">交通</option>
				<option value="4">行程</option>
				<option value="3">住宿</option>
				<option value="5">餐饮</option>
			</select>
			<input  type="text" id="xingcheng3_nairong2" style="float:left;width:610px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 7px;" placeholder="请填写内容" value="<?php echo $xingcheng3_nairong2;?>"></input>
			
			<select id="xingcheng3_type3" style="clear:left;float:left;width:100px;height:25px;border-radius:5px 0px 0px 5px;border:1px solid #D6D7D7;cursor:pointer;padding-left:8px;margin:20px 0px 0px 0px;">
				<option value="0">选择类型</option>
				<option value="2">交通</option>
				<option value="4">行程</option>
				<option value="3">住宿</option>
				<option value="5">餐饮</option>
			</select>
			<input  type="text" id="xingcheng3_nairong3" style="float:left;width:610px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 7px;" placeholder="请填写内容" value="<?php echo $xingcheng3_nairong3;?>"></input>
			
			<select id="xingcheng3_type4" style="clear:left;float:left;width:100px;height:25px;border-radius:5px 0px 0px 5px;border:1px solid #D6D7D7;cursor:pointer;padding-left:8px;margin:20px 0px 0px 0px;">
				<option value="0">选择类型</option>
				<option value="2">交通</option>
				<option value="4">行程</option>
				<option value="3">住宿</option>
				<option value="5">餐饮</option>
			</select>
			<input  type="text" id="xingcheng3_nairong4" style="float:left;width:610px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 7px;" placeholder="请填写内容" value="<?php echo $xingcheng3_nairong4;?>"></input>
			
			<a style="opacity:0;" id="zisheng_id3"><?php echo $zisheng_id3;?></a><!--自身id标识段，这个很重要-->
			
			<div style="clear:left;width:320px;height:20px;"></div>
			<input style="clear:left;width:148.5px;height:34px;border-radius:2px;background-color:#DA4713;color:#FFFFFF;font-family:微软雅黑;font-size:14px;border:1px;text-align:center; cursor:pointer;margin-top:0px;" value="确认" onclick="up_day_3();" ></input>
			
				<a style="text-align:center;color:#ff0000;font-family:微软雅黑;font-size:18px;">第三天所附图片及描述</a>
			<?php
		$i=1;
		$k=1;
		$sql="SELECT * FROM `picture_day_info` WHERE difang_id='$id' and type='1' and day='3' order by id";
		$query = mysql_query($sql);
		$num=mysql_num_rows($query);
		while($row = mysql_fetch_array($query)){
			if($i==1){
				$tupianmiaoshu31=$row['picture_miaoshu'];
			}
			if($i==2){
				$tupianmiaoshu32=$row['picture_miaoshu'];
			}
			if($i==3){
				$tupianmiaoshu33=$row['picture_miaoshu'];
			}
			//$single_kk=$row['key'];
		?>
		<div style="float:left;width:320px;height:150px;margin:10px 0px 0px 10px;background-image:url(<?php echo $row['picture_path'];?>);background-repeat:repeat;background-size:100% 100%;">
			<form action="upload_file1.php" method="post" enctype="multipart/form-data" id="upload_user_img4<?php echo $k;?>">
				<label for="file" style="opacity: 0;">Filename:</label>
				<input type="file" name="file" id="file" style="float:left;width:320px;height:150px;text-align:center;border:1px solid #DA4713;color:#DA4713;font-family:微软雅黑;font-size:14px;border-radius:3px;margin-top:0px;margin-left:0px;opacity: 0;" onchange="change_picture4<?php echo $k;?>()"></input>
				<input name="id" value="<?php echo $id;?>" style="opacity: 0;">
				<input name="bigtype12<?php echo (string)($i);?>" value="1" style="opacity: 0;">
				<input name="is_add12<?php echo (string)($i);?>"  value="<? echo $row['id'];?>" style="opacity: 0;">
				<input name="day12<?php echo (string)($i);?>"  value="3" style="opacity: 0;">
			</form>
		</div>
		
		<?php
		    $i++;
			$k++;
		}
		?>
		<?php
		//补全3张图片
		for($i=0;$i<3-$num;$i++){
		?>
		<div style="float:left;width:320px;height:150px;background-color:#FFFFFF;margin:10px 0px 0px 10px;border:1px solid #C9CACA;padding:64px 0 0 88px;">
			<input style="width:145px;height:23px;text-align:center;border:1px solid #DA4713;color:#DA4713;font-family:微软雅黑;font-size:14px;border-radius:3px;" value="选择驴行图片"></input>
			<form action="upload_file1.php" method="post" enctype="multipart/form-data" id="upload_user_img4<?php echo $i+$num+1;?>">
				<label for="file" style="opacity: 0;">Filename:</label>
				<input type="file" name="file" id="file" style="width:145px;height:23px;text-align:center;border:1px solid #DA4713;color:#DA4713;font-family:微软雅黑;font-size:14px;border-radius:3px;margin-top:-48px;opacity: 0;" onchange="change_picture4<?php echo $i+$num+1;?>()"></input>
				<input name="id"  value="<?php echo $id;?>" style="opacity: 0;">
				<input name="bigtype12<?php echo (string)($num+$i+1);?>" value="1" style="opacity: 0;">
				<input name="is_add12<?php echo (string)($num+$i+1);?>"  value="<?php $row['id'];?>" style="opacity: 0;">
				<input name="day12<?php echo (string)($num+$i+1);?>"  value="3" style="opacity: 0;">
			</form>
		</div>
		<?php } ?>
		
		<SCRIPT>
		function change_picture41(){
			$("#upload_user_img41").submit();
		}
		function change_picture42(){
			$("#upload_user_img42").submit();
		}
		function change_picture43(){
			$("#upload_user_img43").submit();
		}
		</SCRIPT>
		<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">图片描述1</a>
		<input  type="text" id="tupianmiaoshu31" style="float:left;width:350px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 79px;" placeholder="请填写行程标题" value="<?php echo $tupianmiaoshu31;?>"></input>	
		<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">图片描述2</a>
		<input  type="text" id="tupianmiaoshu32" style="float:left;width:350px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 79px;" placeholder="请填写行程标题" value="<?php echo $tupianmiaoshu32;?>"></input>	
		<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">图片描述3</a>
		<input  type="text" id="tupianmiaoshu33" style="float:left;width:350px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 79px;" placeholder="请填写行程标题" value="<?php echo $tupianmiaoshu33;?>"></input>	
		<div style="clear:left;width:320px;height:20px;"></div>
		<input style="clear:left;width:148.5px;height:34px;border-radius:2px;background-color:#DA4713;color:#FFFFFF;font-family:微软雅黑;font-size:14px;border:1px;text-align:center; cursor:pointer;margin-top:0px;" value="确认" onclick="up_day_picture_3();" ></input>
		<input id="day_biaoshi_31" value="3" style="opacity:0;">
		</div>
		<SCRIPT>
		function up_day_picture_3(){
			day_biaoshi=document.getElementById("day_biaoshi_31").value;
			tupianmiaoshu11=document.getElementById("tupianmiaoshu31").value;
			tupianmiaoshu12=document.getElementById("tupianmiaoshu32").value;
			tupianmiaoshu13=document.getElementById("tupianmiaoshu33").value;
			
			var url="getmessage_all.php?bigtype=19&id=<?php echo $id;?>";
			url=url+"&day_biaoshi="+day_biaoshi;
			url=url+"&tupianmiaoshu11="+tupianmiaoshu11;
			url=url+"&tupianmiaoshu12="+tupianmiaoshu12;
			url=url+"&tupianmiaoshu13="+tupianmiaoshu13;
			$.ajax({
				type:"GET",
				url:url,
				dataType: "json",
				success: function(data){	
					if(data['code']==0001){
						alert(data['reason']);
						window.location.href='index.php?id='+data['id'];  
					}else{
						alert(data['reason']);
					}
				}
			});
			
		}
		</SCRIPT>
			
			<!--------------------------------------------------第四天----------------------------------------------->
			<div id="day4" style="display:none">
			<a style="clear:left;text-align:center;color:#ff0000;font-family:微软雅黑;font-size:18px;">第四天</a>
			<?php 
			//查询第三天信息
			$sql="SELECT * FROM `xingcheng_day_info` WHERE difang_id='$id' and day='4'";
			$query = mysql_query($sql);
			while($row = mysql_fetch_array($query)){
				$zisheng_id4          =  $row['id'];
				$xingcheng4_biaoti    =  $row['biaoti'];
				$xingcheng4_type1     =  $row['tubiao_type1'];
				$xingcheng4_nairong1  =  $row['nairong1'];
				$xingcheng4_type2     =  $row['tubiao_type2'];
				$xingcheng4_nairong2  =  $row['nairong2'];
				$xingcheng4_type3     =  $row['tubiao_type3'];
				$xingcheng4_nairong3  =  $row['nairong3'];
				$xingcheng4_type4     =  $row['tubiao_type4'];
				$xingcheng4_nairong4  =  $row['nairong4'];
			}
			
			?>
			<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">标题</a>
			<input  type="text" id="xingcheng4_biaoti" style="float:left;width:350px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 79px;" placeholder="请填写行程标题" value="<?php echo $xingcheng4_biaoti;?>"></input>

			<select id="xingcheng4_type1" style="clear:left;float:left;width:100px;height:25px;border-radius:5px 0px 0px 5px;border:1px solid #D6D7D7;cursor:pointer;padding-left:8px;margin:20px 0px 0px 0px;">
				<option value="0">选择类型</option>
				<option value="2">交通</option>
				<option value="4">行程</option>
				<option value="3">住宿</option>
				<option value="5">餐饮</option>
			</select>
			<input  type="text" id="xingcheng4_nairong1" style="float:left;width:610px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 7px;" placeholder="请填写内容" value="<?php echo $xingcheng4_nairong1;?>"></input>
			
			<select id="xingcheng4_type2" style="clear:left;float:left;width:100px;height:25px;border-radius:5px 0px 0px 5px;border:1px solid #D6D7D7;cursor:pointer;padding-left:8px;margin:20px 0px 0px 0px;">
				<option value="0">选择类型</option>
				<option value="2">交通</option>
				<option value="4">行程</option>
				<option value="3">住宿</option>
				<option value="5">餐饮</option>
			</select>
			<input  type="text" id="xingcheng4_nairong2" style="float:left;width:610px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 7px;" placeholder="请填写内容" value="<?php echo $xingcheng4_nairong2;?>"></input>
			
			<select id="xingcheng4_type3" style="clear:left;float:left;width:100px;height:25px;border-radius:5px 0px 0px 5px;border:1px solid #D6D7D7;cursor:pointer;padding-left:8px;margin:20px 0px 0px 0px;">
				<option value="0">选择类型</option>
				<option value="2">交通</option>
				<option value="4">行程</option>
				<option value="3">住宿</option>
				<option value="5">餐饮</option>
			</select>
			<input  type="text" id="xingcheng4_nairong3" style="float:left;width:610px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 7px;" placeholder="请填写内容" value="<?php echo $xingcheng4_nairong3;?>"></input>
			
			<select id="xingcheng4_type4" style="clear:left;float:left;width:100px;height:25px;border-radius:5px 0px 0px 5px;border:1px solid #D6D7D7;cursor:pointer;padding-left:8px;margin:20px 0px 0px 0px;">
				<option value="0">选择类型</option>
				<option value="2">交通</option>
				<option value="4">行程</option>
				<option value="3">住宿</option>
				<option value="5">餐饮</option>
			</select>
			<input  type="text" id="xingcheng4_nairong4" style="float:left;width:610px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 7px;" placeholder="请填写内容" value="<?php echo $xingcheng4_nairong4;?>"></input>
			
			<a style="opacity:0;" id="zisheng_id4"><?php echo $zisheng_id4;?></a><!--自身id标识段，这个很重要-->
			
			<div style="clear:left;width:320px;height:20px;"></div>
			<input style="clear:left;width:148.5px;height:34px;border-radius:2px;background-color:#DA4713;color:#FFFFFF;font-family:微软雅黑;font-size:14px;border:1px;text-align:center; cursor:pointer;margin-top:0px;" value="确认" onclick="up_day_4();" ></input>
			
			<a style="text-align:center;color:#ff0000;font-family:微软雅黑;font-size:18px;">第四天所附图片及描述</a>
			<?php
		$i=1;
		$k=1;
		$sql="SELECT * FROM `picture_day_info` WHERE difang_id='$id' and type='1' and day='4' order by id";
		$query = mysql_query($sql);
		$num=mysql_num_rows($query);
		while($row = mysql_fetch_array($query)){
			if($i==1){
				$tupianmiaoshu41=$row['picture_miaoshu'];
			}
			if($i==2){
				$tupianmiaoshu42=$row['picture_miaoshu'];
			}
			if($i==3){
				$tupianmiaoshu43=$row['picture_miaoshu'];
			}
			//$single_kk=$row['key'];
		?>
		<div style="float:left;width:320px;height:150px;margin:10px 0px 0px 10px;background-image:url(<?php echo $row['picture_path'];?>);background-repeat:repeat;background-size:100% 100%;">
			<form action="upload_file1.php" method="post" enctype="multipart/form-data" id="upload_user_img5<?php echo $k;?>">
				<label for="file" style="opacity: 0;">Filename:</label>
				<input type="file" name="file" id="file" style="float:left;width:320px;height:150px;text-align:center;border:1px solid #DA4713;color:#DA4713;font-family:微软雅黑;font-size:14px;border-radius:3px;margin-top:0px;margin-left:0px;opacity: 0;" onchange="change_picture5<?php echo $k;?>()"></input>
				<input name="id" value="<?php echo $id;?>" style="opacity: 0;">
				<input name="bigtype13<?php echo (string)($i);?>" value="1" style="opacity: 0;">
				<input name="is_add13<?php echo (string)($i);?>"  value="<? echo $row['id'];?>" style="opacity: 0;">
				<input name="day13<?php echo (string)($i);?>"  value="4" style="opacity: 0;">
			</form>
		</div>
		
		<?php
		    $i++;
			$k++;
		}
		?>
		<?php
		//补全3张图片
		for($i=0;$i<3-$num;$i++){
		?>
		<div style="float:left;width:320px;height:150px;background-color:#FFFFFF;margin:10px 0px 0px 10px;border:1px solid #C9CACA;padding:64px 0 0 88px;">
			<input style="width:145px;height:23px;text-align:center;border:1px solid #DA4713;color:#DA4713;font-family:微软雅黑;font-size:14px;border-radius:3px;" value="选择驴行图片"></input>
			<form action="upload_file1.php" method="post" enctype="multipart/form-data" id="upload_user_img5<?php echo $i+$num+1;?>">
				<label for="file" style="opacity: 0;">Filename:</label>
				<input type="file" name="file" id="file" style="width:145px;height:23px;text-align:center;border:1px solid #DA4713;color:#DA4713;font-family:微软雅黑;font-size:14px;border-radius:3px;margin-top:-48px;opacity: 0;" onchange="change_picture5<?php echo $i+$num+1;?>()"></input>
				<input name="id"  value="<?php echo $id;?>" style="opacity: 0;">
				<input name="bigtype13<?php echo (string)($num+$i+1);?>" value="1" style="opacity: 0;">
				<input name="is_add13<?php echo (string)($num+$i+1);?>"  value="<?php $row['id'];?>" style="opacity: 0;">
				<input name="day13<?php echo (string)($num+$i+1);?>"  value="4" style="opacity: 0;">
			</form>
		</div>
		<?php } ?>
		
		<SCRIPT>
		function change_picture51(){
			$("#upload_user_img51").submit();
		}
		function change_picture52(){
			$("#upload_user_img52").submit();
		}
		function change_picture53(){
			$("#upload_user_img53").submit();
		}
		</SCRIPT>
		<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">图片描述1</a>
		<input  type="text" id="tupianmiaoshu41" style="float:left;width:350px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 79px;" placeholder="请填写行程标题" value="<?php echo $tupianmiaoshu41;?>"></input>	
		<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">图片描述2</a>
		<input  type="text" id="tupianmiaoshu42" style="float:left;width:350px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 79px;" placeholder="请填写行程标题" value="<?php echo $tupianmiaoshu42;?>"></input>	
		<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">图片描述3</a>
		<input  type="text" id="tupianmiaoshu43" style="float:left;width:350px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 79px;" placeholder="请填写行程标题" value="<?php echo $tupianmiaoshu43;?>"></input>	
		<div style="clear:left;width:320px;height:20px;"></div>
		<input style="clear:left;width:148.5px;height:34px;border-radius:2px;background-color:#DA4713;color:#FFFFFF;font-family:微软雅黑;font-size:14px;border:1px;text-align:center; cursor:pointer;margin-top:0px;" value="确认" onclick="up_day_picture_4();" ></input>
		<input id="day_biaoshi_41" value="4" style="opacity:0;">
		</div>
		<SCRIPT>
		function up_day_picture_4(){
			day_biaoshi=document.getElementById("day_biaoshi_41").value;
			tupianmiaoshu11=document.getElementById("tupianmiaoshu41").value;
			tupianmiaoshu12=document.getElementById("tupianmiaoshu42").value;
			tupianmiaoshu13=document.getElementById("tupianmiaoshu43").value;
			
			var url="getmessage_all.php?bigtype=19&id=<?php echo $id;?>";
			url=url+"&day_biaoshi="+day_biaoshi;
			url=url+"&tupianmiaoshu11="+tupianmiaoshu11;
			url=url+"&tupianmiaoshu12="+tupianmiaoshu12;
			url=url+"&tupianmiaoshu13="+tupianmiaoshu13;
			$.ajax({
				type:"GET",
				url:url,
				dataType: "json",
				success: function(data){	
					if(data['code']==0001){
						alert(data['reason']);
						window.location.href='index.php?id='+data['id'];  
					}else{
						alert(data['reason']);
					}
				}
			});
			
		}
		</SCRIPT>
			
			<!--------------------------------------------------第5天----------------------------------------------->
			<div id="day5" style="display:none">
			<a style="clear:left;text-align:center;color:#ff0000;font-family:微软雅黑;font-size:18px;">第五天</a>
			<?php 
			//查询第5天信息
			$sql="SELECT * FROM `xingcheng_day_info` WHERE difang_id='$id' and day='5'";
			$query = mysql_query($sql);
			while($row = mysql_fetch_array($query)){
				$zisheng_id5          =  $row['id'];
				$xingcheng5_biaoti    =  $row['biaoti'];
				$xingcheng5_type1     =  $row['tubiao_type1'];
				$xingcheng5_nairong1  =  $row['nairong1'];
				$xingcheng5_type2     =  $row['tubiao_type2'];
				$xingcheng5_nairong2  =  $row['nairong2'];
				$xingcheng5_type3     =  $row['tubiao_type3'];
				$xingcheng5_nairong3  =  $row['nairong3'];
				$xingcheng5_type4     =  $row['tubiao_type4'];
				$xingcheng5_nairong4  =  $row['nairong4'];
			}
			
			?>
			<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">标题</a>
			<input  type="text" id="xingcheng5_biaoti" style="float:left;width:350px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 79px;" placeholder="请填写行程标题" value="<?php echo $xingcheng5_biaoti;?>"></input>

			<select id="xingcheng5_type1" style="clear:left;float:left;width:100px;height:25px;border-radius:5px 0px 0px 5px;border:1px solid #D6D7D7;cursor:pointer;padding-left:8px;margin:20px 0px 0px 0px;">
				<option value="0">选择类型</option>
				<option value="2">交通</option>
				<option value="4">行程</option>
				<option value="3">住宿</option>
				<option value="5">餐饮</option>
			</select>
			<input  type="text" id="xingcheng5_nairong1" style="float:left;width:610px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 7px;" placeholder="请填写内容" value="<?php echo $xingcheng5_nairong1;?>"></input>
			
			<select id="xingcheng5_type2" style="clear:left;float:left;width:100px;height:25px;border-radius:5px 0px 0px 5px;border:1px solid #D6D7D7;cursor:pointer;padding-left:8px;margin:20px 0px 0px 0px;">
				<option value="0">选择类型</option>
				<option value="2">交通</option>
				<option value="4">行程</option>
				<option value="3">住宿</option>
				<option value="5">餐饮</option>
			</select>
			<input  type="text" id="xingcheng5_nairong2" style="float:left;width:610px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 7px;" placeholder="请填写内容" value="<?php echo $xingcheng5_nairong2;?>"></input>
			
			<select id="xingcheng5_type3" style="clear:left;float:left;width:100px;height:25px;border-radius:5px 0px 0px 5px;border:1px solid #D6D7D7;cursor:pointer;padding-left:8px;margin:20px 0px 0px 0px;">
				<option value="0">选择类型</option>
				<option value="2">交通</option>
				<option value="4">行程</option>
				<option value="3">住宿</option>
				<option value="5">餐饮</option>
			</select>
			<input  type="text" id="xingcheng5_nairong3" style="float:left;width:610px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 7px;" placeholder="请填写内容" value="<?php echo $xingcheng5_nairong3;?>"></input>
			
			<select id="xingcheng5_type4" style="clear:left;float:left;width:100px;height:25px;border-radius:5px 0px 0px 5px;border:1px solid #D6D7D7;cursor:pointer;padding-left:8px;margin:20px 0px 0px 0px;">
				<option value="0">选择类型</option>
				<option value="2">交通</option>
				<option value="4">行程</option>
				<option value="3">住宿</option>
				<option value="5">餐饮</option>
			</select>
			<input  type="text" id="xingcheng5_nairong4" style="float:left;width:610px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 7px;" placeholder="请填写内容" value="<?php echo $xingcheng5_nairong4;?>"></input>
			
			<a style="opacity:0;" id="zisheng_id5"><?php echo $zisheng_id5;?></a><!--自身id标识段，这个很重要-->
			
			<div style="clear:left;width:320px;height:20px;"></div>
			<input style="clear:left;width:148.5px;height:34px;border-radius:2px;background-color:#DA4713;color:#FFFFFF;font-family:微软雅黑;font-size:14px;border:1px;text-align:center; cursor:pointer;margin-top:0px;" value="确认" onclick="up_day_5();" ></input>
			
			<a style="text-align:center;color:#ff0000;font-family:微软雅黑;font-size:18px;">第五天所附图片及描述</a>
			<?php
		$i=1;
		$k=1;
		$sql="SELECT * FROM `picture_day_info` WHERE difang_id='$id' and type='1' and day='5' order by id";
		$query = mysql_query($sql);
		$num=mysql_num_rows($query);
		while($row = mysql_fetch_array($query)){
			if($i==1){
				$tupianmiaoshu51=$row['picture_miaoshu'];
			}
			if($i==2){
				$tupianmiaoshu52=$row['picture_miaoshu'];
			}
			if($i==3){
				$tupianmiaoshu53=$row['picture_miaoshu'];
			}
			//$single_kk=$row['key'];
		?>
		<div style="float:left;width:320px;height:150px;margin:10px 0px 0px 10px;background-image:url(<?php echo $row['picture_path'];?>);background-repeat:repeat;background-size:100% 100%;">
			<form action="upload_file1.php" method="post" enctype="multipart/form-data" id="upload_user_img6<?php echo $k;?>">
				<label for="file" style="opacity: 0;">Filename:</label>
				<input type="file" name="file" id="file" style="float:left;width:320px;height:150px;text-align:center;border:1px solid #DA4713;color:#DA4713;font-family:微软雅黑;font-size:14px;border-radius:3px;margin-top:0px;margin-left:0px;opacity: 0;" onchange="change_picture6<?php echo $k;?>()"></input>
				<input name="id" value="<?php echo $id;?>" style="opacity: 0;">
				<input name="bigtype14<?php echo (string)($i);?>" value="1" style="opacity: 0;">
				<input name="is_add14<?php echo (string)($i);?>"  value="<? echo $row['id'];?>" style="opacity: 0;">
				<input name="day14<?php echo (string)($i);?>"  value="5" style="opacity: 0;">
			</form>
		</div>
		
		<?php
		    $i++;
			$k++;
		}
		?>
		<?php
		//补全3张图片
		for($i=0;$i<3-$num;$i++){
		?>
		<div style="float:left;width:320px;height:150px;background-color:#FFFFFF;margin:10px 0px 0px 10px;border:1px solid #C9CACA;padding:64px 0 0 88px;">
			<input style="width:145px;height:23px;text-align:center;border:1px solid #DA4713;color:#DA4713;font-family:微软雅黑;font-size:14px;border-radius:3px;" value="选择驴行图片"></input>
			<form action="upload_file1.php" method="post" enctype="multipart/form-data" id="upload_user_img6<?php echo $i+$num+1;?>">
				<label for="file" style="opacity: 0;">Filename:</label>
				<input type="file" name="file" id="file" style="width:145px;height:23px;text-align:center;border:1px solid #DA4713;color:#DA4713;font-family:微软雅黑;font-size:14px;border-radius:3px;margin-top:-48px;opacity: 0;" onchange="change_picture6<?php echo $i+$num+1;?>()"></input>
				<input name="id"  value="<?php echo $id;?>" style="opacity: 0;">
				<input name="bigtype14<?php echo (string)($num+$i+1);?>" value="1" style="opacity: 0;">
				<input name="is_add14<?php echo (string)($num+$i+1);?>"  value="<?php $row['id'];?>" style="opacity: 0;">
				<input name="day14<?php echo (string)($num+$i+1);?>"  value="5" style="opacity: 0;">
			</form>
		</div>
		<?php } ?>
		
		<SCRIPT>
		function change_picture61(){
			$("#upload_user_img61").submit();
		}
		function change_picture62(){
			$("#upload_user_img62").submit();
		}
		function change_picture63(){
			$("#upload_user_img63").submit();
		}
		</SCRIPT>
		<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">图片描述1</a>
		<input  type="text" id="tupianmiaoshu51" style="float:left;width:350px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 79px;" placeholder="请填写行程标题" value="<?php echo $tupianmiaoshu51;?>"></input>	
		
		<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">图片描述2</a>
		<input  type="text" id="tupianmiaoshu52" style="float:left;width:350px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 79px;" placeholder="请填写行程标题" value="<?php echo $tupianmiaoshu52;?>"></input>	
		
		<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">图片描述3</a>
		<input  type="text" id="tupianmiaoshu53" style="float:left;width:350px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 79px;" placeholder="请填写行程标题" value="<?php echo $tupianmiaoshu53;?>"></input>	
		
		<div style="clear:left;width:320px;height:20px;"></div>
		<input style="clear:left;width:148.5px;height:34px;border-radius:2px;background-color:#DA4713;color:#FFFFFF;font-family:微软雅黑;font-size:14px;border:1px;text-align:center; cursor:pointer;margin-top:0px;" value="确认" onclick="up_day_picture_5();" ></input>
		<input id="day_biaoshi_51" value="5" style="opacity:0;">
		</div>
		<SCRIPT>
		function up_day_picture_5(){
			day_biaoshi=document.getElementById("day_biaoshi_51").value;
			tupianmiaoshu11=document.getElementById("tupianmiaoshu51").value;
			tupianmiaoshu12=document.getElementById("tupianmiaoshu52").value;
			tupianmiaoshu13=document.getElementById("tupianmiaoshu53").value;
			
			var url="getmessage_all.php?bigtype=19&id=<?php echo $id;?>";
			url=url+"&day_biaoshi="+day_biaoshi;
			url=url+"&tupianmiaoshu11="+tupianmiaoshu11;
			url=url+"&tupianmiaoshu12="+tupianmiaoshu12;
			url=url+"&tupianmiaoshu13="+tupianmiaoshu13;
			$.ajax({
				type:"GET",
				url:url,
				dataType: "json",
				success: function(data){	
					if(data['code']==0001){
						alert(data['reason']);
						window.location.href='index.php?id='+data['id'];  
					}else{
						alert(data['reason']);
					}
				}
			});
			
		}
		</SCRIPT>
			
			<!--------------------------------------------------第6天----------------------------------------------->
			<div id="day6" style="display:none">
			<a style="clear:left;text-align:center;color:#ff0000;font-family:微软雅黑;font-size:18px;">第六天</a>
			<?php 
			//查询第5天信息
			$sql="SELECT * FROM `xingcheng_day_info` WHERE difang_id='$id' and day='6'";
			$query = mysql_query($sql);
			while($row = mysql_fetch_array($query)){
				$zisheng_id6          =  $row['id'];
				$xingcheng6_biaoti    =  $row['biaoti'];
				$xingcheng6_type1     =  $row['tubiao_type1'];
				$xingcheng6_nairong1  =  $row['nairong1'];
				$xingcheng6_type2     =  $row['tubiao_type2'];
				$xingcheng6_nairong2  =  $row['nairong2'];
				$xingcheng6_type3     =  $row['tubiao_type3'];
				$xingcheng6_nairong3  =  $row['nairong3'];
				$xingcheng6_type4     =  $row['tubiao_type4'];
				$xingcheng6_nairong4  =  $row['nairong4'];
			}
			
			?>
			<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">标题</a>
			<input  type="text" id="xingcheng6_biaoti" style="float:left;width:350px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 79px;" placeholder="请填写行程标题" value="<?php echo $xingcheng6_biaoti;?>"></input>

			<select id="xingcheng6_type1" style="clear:left;float:left;width:100px;height:25px;border-radius:5px 0px 0px 5px;border:1px solid #D6D7D7;cursor:pointer;padding-left:8px;margin:20px 0px 0px 0px;">
				<option value="0">选择类型</option>
				<option value="2">交通</option>
				<option value="4">行程</option>
				<option value="3">住宿</option>
				<option value="5">餐饮</option>
			</select>
			<input  type="text" id="xingcheng6_nairong1" style="float:left;width:610px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 7px;" placeholder="请填写内容" value="<?php echo $xingcheng6_nairong1;?>"></input>
			
			<select id="xingcheng6_type2" style="clear:left;float:left;width:100px;height:25px;border-radius:5px 0px 0px 5px;border:1px solid #D6D7D7;cursor:pointer;padding-left:8px;margin:20px 0px 0px 0px;">
				<option value="0">选择类型</option>
				<option value="2">交通</option>
				<option value="4">行程</option>
				<option value="3">住宿</option>
				<option value="5">餐饮</option>
			</select>
			<input  type="text" id="xingcheng6_nairong2" style="float:left;width:610px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 7px;" placeholder="请填写内容" value="<?php echo $xingcheng6_nairong2;?>"></input>
			
			<select id="xingcheng6_type3" style="clear:left;float:left;width:100px;height:25px;border-radius:5px 0px 0px 5px;border:1px solid #D6D7D7;cursor:pointer;padding-left:8px;margin:20px 0px 0px 0px;">
				<option value="0">选择类型</option>
				<option value="2">交通</option>
				<option value="4">行程</option>
				<option value="3">住宿</option>
				<option value="5">餐饮</option>
			</select>
			<input  type="text" id="xingcheng6_nairong3" style="float:left;width:610px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 7px;" placeholder="请填写内容" value="<?php echo $xingcheng6_nairong3;?>"></input>
			
			<select id="xingcheng6_type4" style="clear:left;float:left;width:100px;height:25px;border-radius:5px 0px 0px 5px;border:1px solid #D6D7D7;cursor:pointer;padding-left:8px;margin:20px 0px 0px 0px;">
				<option value="0">选择类型</option>
				<option value="2">交通</option>
				<option value="4">行程</option>
				<option value="3">住宿</option>
				<option value="5">餐饮</option>
			</select>
			<input  type="text" id="xingcheng6_nairong4" style="float:left;width:610px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 7px;" placeholder="请填写内容" value="<?php echo $xingcheng6_nairong4;?>"></input>
			
			<a style="opacity:0;" id="zisheng_id6"><?php echo $zisheng_id6;?></a><!--自身id标识段，这个很重要-->
			
			<div style="clear:left;width:320px;height:20px;"></div>
			<input style="clear:left;width:148.5px;height:34px;border-radius:2px;background-color:#DA4713;color:#FFFFFF;font-family:微软雅黑;font-size:14px;border:1px;text-align:center; cursor:pointer;margin-top:0px;" value="确认" onclick="up_day_6();" ></input>
			
			<a style="text-align:center;color:#ff0000;font-family:微软雅黑;font-size:18px;">第六天所附图片及描述</a>
			<?php
		$i=1;
		$k=1;
		$sql="SELECT * FROM `picture_day_info` WHERE difang_id='$id' and type='1' and day='6' order by id";
		$query = mysql_query($sql);
		$num=mysql_num_rows($query);
		while($row = mysql_fetch_array($query)){
			if($i==1){
				$tupianmiaoshu61=$row['picture_miaoshu'];
			}
			if($i==2){
				$tupianmiaoshu62=$row['picture_miaoshu'];
			}
			if($i==3){
				$tupianmiaoshu63=$row['picture_miaoshu'];
			}
			//$single_kk=$row['key'];
		?>
		<div style="float:left;width:320px;height:150px;margin:10px 0px 0px 10px;background-image:url(<?php echo $row['picture_path'];?>);background-repeat:repeat;background-size:100% 100%;">
			<form action="upload_file1.php" method="post" enctype="multipart/form-data" id="upload_user_img7<?php echo $k;?>">
				<label for="file" style="opacity: 0;">Filename:</label>
				<input type="file" name="file" id="file" style="float:left;width:320px;height:150px;text-align:center;border:1px solid #DA4713;color:#DA4713;font-family:微软雅黑;font-size:14px;border-radius:3px;margin-top:0px;margin-left:0px;opacity: 0;" onchange="change_picture7<?php echo $k;?>()"></input>
				<input name="id" value="<?php echo $id;?>" style="opacity: 0;">
				<input name="bigtype15<?php echo (string)($i);?>" value="1" style="opacity: 0;">
				<input name="is_add15<?php echo (string)($i);?>"  value="<? echo $row['id'];?>" style="opacity: 0;">
				<input name="day15<?php echo (string)($i);?>"  value="6" style="opacity: 0;">
			</form>
		</div>
		
		<?php
		    $i++;
			$k++;
		}
		?>
		<?php
		//补全3张图片
		for($i=0;$i<3-$num;$i++){
		?>
		<div style="float:left;width:320px;height:150px;background-color:#FFFFFF;margin:10px 0px 0px 10px;border:1px solid #C9CACA;padding:64px 0 0 88px;">
			<input style="width:145px;height:23px;text-align:center;border:1px solid #DA4713;color:#DA4713;font-family:微软雅黑;font-size:14px;border-radius:3px;" value="选择驴行图片"></input>
			<form action="upload_file1.php" method="post" enctype="multipart/form-data" id="upload_user_img7<?php echo $i+$num+1;?>">
				<label for="file" style="opacity: 0;">Filename:</label>
				<input type="file" name="file" id="file" style="width:145px;height:23px;text-align:center;border:1px solid #DA4713;color:#DA4713;font-family:微软雅黑;font-size:14px;border-radius:3px;margin-top:-48px;opacity: 0;" onchange="change_picture7<?php echo $i+$num+1;?>()"></input>
				<input name="id"  value="<?php echo $id;?>" style="opacity: 0;">
				<input name="bigtype15<?php echo (string)($num+$i+1);?>" value="1" style="opacity: 0;">
				<input name="is_add15<?php echo (string)($num+$i+1);?>"  value="<?php $row['id'];?>" style="opacity: 0;">
				<input name="day15<?php echo (string)($num+$i+1);?>"  value="6" style="opacity: 0;">
			</form>
		</div>
		<?php } ?>
		
		<SCRIPT>
		function change_picture71(){
			$("#upload_user_img71").submit();
		}
		function change_picture72(){
			$("#upload_user_img72").submit();
		}
		function change_picture73(){
			$("#upload_user_img73").submit();
		}
		</SCRIPT>
		<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">图片描述1</a>
		<input  type="text" id="tupianmiaoshu61" style="float:left;width:350px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 79px;" placeholder="请填写行程标题" value="<?php echo $tupianmiaoshu61;?>"></input>	
		
		<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">图片描述2</a>
		<input  type="text" id="tupianmiaoshu62" style="float:left;width:350px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 79px;" placeholder="请填写行程标题" value="<?php echo $tupianmiaoshu62;?>"></input>	
		
		<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">图片描述3</a>
		<input  type="text" id="tupianmiaoshu63" style="float:left;width:350px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 79px;" placeholder="请填写行程标题" value="<?php echo $tupianmiaoshu63;?>"></input>	
		
		<div style="clear:left;width:320px;height:20px;"></div>
		<input style="clear:left;width:148.5px;height:34px;border-radius:2px;background-color:#DA4713;color:#FFFFFF;font-family:微软雅黑;font-size:14px;border:1px;text-align:center; cursor:pointer;margin-top:0px;" value="确认" onclick="up_day_picture_6();" ></input>
		<input id="day_biaoshi_61" value="6" style="opacity:0;">
		</div>
		<SCRIPT>
		function up_day_picture_6(){
			day_biaoshi=document.getElementById("day_biaoshi_61").value;
			tupianmiaoshu11=document.getElementById("tupianmiaoshu61").value;
			tupianmiaoshu12=document.getElementById("tupianmiaoshu62").value;
			tupianmiaoshu13=document.getElementById("tupianmiaoshu63").value;
			
			var url="getmessage_all.php?bigtype=19&id=<?php echo $id;?>";
			url=url+"&day_biaoshi="+day_biaoshi;
			url=url+"&tupianmiaoshu11="+tupianmiaoshu11;
			url=url+"&tupianmiaoshu12="+tupianmiaoshu12;
			url=url+"&tupianmiaoshu13="+tupianmiaoshu13;
			$.ajax({
				type:"GET",
				url:url,
				dataType: "json",
				success: function(data){	
					if(data['code']==0001){
						alert(data['reason']);
						window.location.href='index.php?id='+data['id'];  
					}else{
						alert(data['reason']);
					}
				}
			});
			
		}
		</SCRIPT>
			
			<!--------------------------------------------------第7天----------------------------------------------->
			<div id="day7" style="display:none">
			<a style="clear:left;text-align:center;color:#ff0000;font-family:微软雅黑;font-size:18px;">第七天</a>
			<?php 
			//查询第5天信息
			$sql="SELECT * FROM `xingcheng_day_info` WHERE difang_id='$id' and day='7'";
			$query = mysql_query($sql);
			while($row = mysql_fetch_array($query)){
				$zisheng_id7          =  $row['id'];
				$xingcheng7_biaoti    =  $row['biaoti'];
				$xingcheng7_type1     =  $row['tubiao_type1'];
				$xingcheng7_nairong1  =  $row['nairong1'];
				$xingcheng7_type2     =  $row['tubiao_type2'];
				$xingcheng7_nairong2  =  $row['nairong2'];
				$xingcheng7_type3     =  $row['tubiao_type3'];
				$xingcheng7_nairong3  =  $row['nairong3'];
				$xingcheng7_type4     =  $row['tubiao_type4'];
				$xingcheng7_nairong4  =  $row['nairong4'];
			}
			
			?>
			<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">标题</a>
			<input  type="text" id="xingcheng7_biaoti" style="float:left;width:350px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 79px;" placeholder="请填写行程标题" value="<?php echo $xingcheng7_biaoti;?>"></input>

			<select id="xingcheng7_type1" style="clear:left;float:left;width:100px;height:25px;border-radius:5px 0px 0px 5px;border:1px solid #D6D7D7;cursor:pointer;padding-left:8px;margin:20px 0px 0px 0px;">
				<option value="0">选择类型</option>
				<option value="2">交通</option>
				<option value="4">行程</option>
				<option value="3">住宿</option>
				<option value="5">餐饮</option>
			</select>
			<input  type="text" id="xingcheng7_nairong1" style="float:left;width:610px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 7px;" placeholder="请填写内容" value="<?php echo $xingcheng7_nairong1;?>"></input>
			
			<select id="xingcheng7_type2" style="clear:left;float:left;width:100px;height:25px;border-radius:5px 0px 0px 5px;border:1px solid #D6D7D7;cursor:pointer;padding-left:8px;margin:20px 0px 0px 0px;">
				<option value="0">选择类型</option>
				<option value="2">交通</option>
				<option value="4">行程</option>
				<option value="3">住宿</option>
				<option value="5">餐饮</option>
			</select>
			<input  type="text" id="xingcheng7_nairong2" style="float:left;width:610px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 7px;" placeholder="请填写内容" value="<?php echo $xingcheng7_nairong2;?>"></input>
			
			<select id="xingcheng7_type3" style="clear:left;float:left;width:100px;height:25px;border-radius:5px 0px 0px 5px;border:1px solid #D6D7D7;cursor:pointer;padding-left:8px;margin:20px 0px 0px 0px;">
				<option value="0">选择类型</option>
				<option value="2">交通</option>
				<option value="4">行程</option>
				<option value="3">住宿</option>
				<option value="5">餐饮</option>
			</select>
			<input  type="text" id="xingcheng7_nairong3" style="float:left;width:610px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 7px;" placeholder="请填写内容" value="<?php echo $xingcheng7_nairong3;?>"></input>
			
			<select id="xingcheng7_type4" style="clear:left;float:left;width:100px;height:25px;border-radius:5px 0px 0px 5px;border:1px solid #D6D7D7;cursor:pointer;padding-left:8px;margin:20px 0px 0px 0px;">
				<option value="0">选择类型</option>
				<option value="2">交通</option>
				<option value="4">行程</option>
				<option value="3">住宿</option>
				<option value="5">餐饮</option>
			</select>
			<input  type="text" id="xingcheng7_nairong4" style="float:left;width:610px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 7px;" placeholder="请填写内容" value="<?php echo $xingcheng7_nairong4;?>"></input>
			
			<a style="opacity:0;" id="zisheng_id7"><?php echo $zisheng_id7;?></a><!--自身id标识段，这个很重要-->
			
			<div style="clear:left;width:320px;height:20px;"></div>
			<input style="clear:left;width:148.5px;height:34px;border-radius:2px;background-color:#DA4713;color:#FFFFFF;font-family:微软雅黑;font-size:14px;border:1px;text-align:center; cursor:pointer;margin-top:0px;" value="确认" onclick="up_day_7();" ></input>
			
			<a style="text-align:center;color:#ff0000;font-family:微软雅黑;font-size:18px;">第七天所附图片及描述</a>
			<?php
		$i=1;
		$k=1;
		$sql="SELECT * FROM `picture_day_info` WHERE difang_id='$id' and type='1' and day='7' order by id";
		$query = mysql_query($sql);
		$num=mysql_num_rows($query);
		while($row = mysql_fetch_array($query)){
			if($i==1){
				$tupianmiaoshu71=$row['picture_miaoshu'];
			}
			if($i==2){
				$tupianmiaoshu72=$row['picture_miaoshu'];
			}
			if($i==3){
				$tupianmiaoshu73=$row['picture_miaoshu'];
			}
			//$single_kk=$row['key'];
		?>
		<div style="float:left;width:320px;height:150px;margin:10px 0px 0px 10px;background-image:url(<?php echo $row['picture_path'];?>);background-repeat:repeat;background-size:100% 100%;">
			<form action="upload_file1.php" method="post" enctype="multipart/form-data" id="upload_user_img8<?php echo $k;?>">
				<label for="file" style="opacity: 0;">Filename:</label>
				<input type="file" name="file" id="file" style="float:left;width:320px;height:150px;text-align:center;border:1px solid #DA4713;color:#DA4713;font-family:微软雅黑;font-size:14px;border-radius:3px;margin-top:0px;margin-left:0px;opacity: 0;" onchange="change_picture8<?php echo $k;?>()"></input>
				<input name="id" value="<?php echo $id;?>" style="opacity: 0;">
				<input name="bigtype16<?php echo (string)($i);?>" value="1" style="opacity: 0;">
				<input name="is_add16<?php echo (string)($i);?>"  value="<? echo $row['id'];?>" style="opacity: 0;">
				<input name="day16<?php echo (string)($i);?>"  value="7" style="opacity: 0;">
			</form>
		</div>
		
		<?php
		    $i++;
			$k++;
		}
		?>
		<?php
		//补全3张图片
		for($i=0;$i<3-$num;$i++){
		?>
		<div style="float:left;width:320px;height:150px;background-color:#FFFFFF;margin:10px 0px 0px 10px;border:1px solid #C9CACA;padding:64px 0 0 88px;">
			<input style="width:145px;height:23px;text-align:center;border:1px solid #DA4713;color:#DA4713;font-family:微软雅黑;font-size:14px;border-radius:3px;" value="选择驴行图片"></input>
			<form action="upload_file1.php" method="post" enctype="multipart/form-data" id="upload_user_img8<?php echo $i+$num+1;?>">
				<label for="file" style="opacity: 0;">Filename:</label>
				<input type="file" name="file" id="file" style="width:145px;height:23px;text-align:center;border:1px solid #DA4713;color:#DA4713;font-family:微软雅黑;font-size:14px;border-radius:3px;margin-top:-48px;opacity: 0;" onchange="change_picture8<?php echo $i+$num+1;?>()"></input>
				<input name="id"  value="<?php echo $id;?>" style="opacity: 0;">
				<input name="bigtype16<?php echo (string)($num+$i+1);?>" value="1" style="opacity: 0;">
				<input name="is_add16<?php echo (string)($num+$i+1);?>"  value="<?php $row['id'];?>" style="opacity: 0;">
				<input name="day16<?php echo (string)($num+$i+1);?>"  value="7" style="opacity: 0;">
			</form>
		</div>
		<?php } ?>
		
		<SCRIPT>
		function change_picture81(){
			$("#upload_user_img81").submit();
		}
		function change_picture82(){
			$("#upload_user_img82").submit();
		}
		function change_picture83(){
			$("#upload_user_img83").submit();
		}
		</SCRIPT>
		<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">图片描述1</a>
		<input  type="text" id="tupianmiaoshu71" style="float:left;width:350px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 79px;" placeholder="请填写行程标题" value="<?php echo $tupianmiaoshu71;?>"></input>	
		
		<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">图片描述2</a>
		<input  type="text" id="tupianmiaoshu72" style="float:left;width:350px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 79px;" placeholder="请填写行程标题" value="<?php echo $tupianmiaoshu72;?>"></input>	
		
		<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">图片描述3</a>
		<input  type="text" id="tupianmiaoshu73" style="float:left;width:350px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 79px;" placeholder="请填写行程标题" value="<?php echo $tupianmiaoshu73;?>"></input>	
		
		<div style="clear:left;width:320px;height:20px;"></div>
		<input style="clear:left;width:148.5px;height:34px;border-radius:2px;background-color:#DA4713;color:#FFFFFF;font-family:微软雅黑;font-size:14px;border:1px;text-align:center; cursor:pointer;margin-top:0px;" value="确认" onclick="up_day_picture_7();" ></input>
		<input id="day_biaoshi_71" value="7" style="opacity:0;">
		</div>
		<SCRIPT>
		function up_day_picture_7(){
			day_biaoshi=document.getElementById("day_biaoshi_71").value;
			tupianmiaoshu11=document.getElementById("tupianmiaoshu71").value;
			tupianmiaoshu12=document.getElementById("tupianmiaoshu72").value;
			tupianmiaoshu13=document.getElementById("tupianmiaoshu73").value;
			
			var url="getmessage_all.php?bigtype=19&id=<?php echo $id;?>";
			url=url+"&day_biaoshi="+day_biaoshi;
			url=url+"&tupianmiaoshu11="+tupianmiaoshu11;
			url=url+"&tupianmiaoshu12="+tupianmiaoshu12;
			url=url+"&tupianmiaoshu13="+tupianmiaoshu13;
			$.ajax({
				type:"GET",
				url:url,
				dataType: "json",
				success: function(data){	
					if(data['code']==0001){
						alert(data['reason']);
						window.location.href='index.php?id='+data['id'];  
					}else{
						alert(data['reason']);
					}
				}
			});
			
		}
		</SCRIPT>
			
			<!--------------------------------------------------第8天----------------------------------------------->
			<div id="day8" style="display:none">
			<a style="clear:left;text-align:center;color:#ff0000;font-family:微软雅黑;font-size:18px;">第八天</a>
			<?php 
			//查询第5天信息
			$sql="SELECT * FROM `xingcheng_day_info` WHERE difang_id='$id' and day='8'";
			$query = mysql_query($sql);
			while($row = mysql_fetch_array($query)){
				$zisheng_id8          =  $row['id'];
				$xingcheng8_biaoti    =  $row['biaoti'];
				$xingcheng8_type1     =  $row['tubiao_type1'];
				$xingcheng8_nairong1  =  $row['nairong1'];
				$xingcheng8_type2     =  $row['tubiao_type2'];
				$xingcheng8_nairong2  =  $row['nairong2'];
				$xingcheng8_type3     =  $row['tubiao_type3'];
				$xingcheng8_nairong3  =  $row['nairong3'];
				$xingcheng8_type4     =  $row['tubiao_type4'];
				$xingcheng8_nairong4  =  $row['nairong4'];
			}
			
			?>
			<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">标题</a>
			<input  type="text" id="xingcheng8_biaoti" style="float:left;width:350px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 79px;" placeholder="请填写行程标题" value="<?php echo $xingcheng8_biaoti;?>"></input>

			<select id="xingcheng8_type1" style="clear:left;float:left;width:100px;height:25px;border-radius:5px 0px 0px 5px;border:1px solid #D6D7D7;cursor:pointer;padding-left:8px;margin:20px 0px 0px 0px;">
				<option value="0">选择类型</option>
				<option value="2">交通</option>
				<option value="4">行程</option>
				<option value="3">住宿</option>
				<option value="5">餐饮</option>
			</select>
			<input  type="text" id="xingcheng8_nairong1" style="float:left;width:610px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 7px;" placeholder="请填写内容" value="<?php echo $xingcheng8_nairong1;?>"></input>
			
			<select id="xingcheng8_type2" style="clear:left;float:left;width:100px;height:25px;border-radius:5px 0px 0px 5px;border:1px solid #D6D7D7;cursor:pointer;padding-left:8px;margin:20px 0px 0px 0px;">
				<option value="0">选择类型</option>
				<option value="2">交通</option>
				<option value="4">行程</option>
				<option value="3">住宿</option>
				<option value="5">餐饮</option>
			</select>
			<input  type="text" id="xingcheng8_nairong2" style="float:left;width:610px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 7px;" placeholder="请填写内容" value="<?php echo $xingcheng8_nairong2;?>"></input>
			
			<select id="xingcheng8_type3" style="clear:left;float:left;width:100px;height:25px;border-radius:5px 0px 0px 5px;border:1px solid #D6D7D7;cursor:pointer;padding-left:8px;margin:20px 0px 0px 0px;">
				<option value="0">选择类型</option>
				<option value="2">交通</option>
				<option value="4">行程</option>
				<option value="3">住宿</option>
				<option value="5">餐饮</option>
			</select>
			<input  type="text" id="xingcheng8_nairong3" style="float:left;width:610px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 7px;" placeholder="请填写内容" value="<?php echo $xingcheng8_nairong3;?>"></input>
			
			<select id="xingcheng8_type4" style="clear:left;float:left;width:100px;height:25px;border-radius:5px 0px 0px 5px;border:1px solid #D6D7D7;cursor:pointer;padding-left:8px;margin:20px 0px 0px 0px;">
				<option value="0">选择类型</option>
				<option value="2">交通</option>
				<option value="4">行程</option>
				<option value="3">住宿</option>
				<option value="5">餐饮</option>
			</select>
			<input  type="text" id="xingcheng8_nairong4" style="float:left;width:610px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 7px;" placeholder="请填写内容" value="<?php echo $xingcheng8_nairong4;?>"></input>
			
			<a style="opacity:0;" id="zisheng_id8"><?php echo $zisheng_id8;?></a><!--自身id标识段，这个很重要-->
			
			<div style="clear:left;width:320px;height:20px;"></div>
			<input style="clear:left;width:148.5px;height:34px;border-radius:2px;background-color:#DA4713;color:#FFFFFF;font-family:微软雅黑;font-size:14px;border:1px;text-align:center; cursor:pointer;margin-top:0px;" value="确认" onclick="up_day_8();" ></input>
			
			<a style="text-align:center;color:#ff0000;font-family:微软雅黑;font-size:18px;">第八天所附图片及描述</a>
			<?php
		$i=1;
		$k=1;
		$sql="SELECT * FROM `picture_day_info` WHERE difang_id='$id' and type='1' and day='8' order by id";
		$query = mysql_query($sql);
		$num=mysql_num_rows($query);
		while($row = mysql_fetch_array($query)){
			if($i==1){
				$tupianmiaoshu81=$row['picture_miaoshu'];
			}
			if($i==2){
				$tupianmiaoshu82=$row['picture_miaoshu'];
			}
			if($i==3){
				$tupianmiaoshu83=$row['picture_miaoshu'];
			}
			//$single_kk=$row['key'];
		?>
		<div style="float:left;width:320px;height:150px;margin:10px 0px 0px 10px;background-image:url(<?php echo $row['picture_path'];?>);background-repeat:repeat;background-size:100% 100%;">
			<form action="upload_file1.php" method="post" enctype="multipart/form-data" id="upload_user_img9<?php echo $k;?>">
				<label for="file" style="opacity: 0;">Filename:</label>
				<input type="file" name="file" id="file" style="float:left;width:320px;height:150px;text-align:center;border:1px solid #DA4713;color:#DA4713;font-family:微软雅黑;font-size:14px;border-radius:3px;margin-top:0px;margin-left:0px;opacity: 0;" onchange="change_picture9<?php echo $k;?>()"></input>
				<input name="id" value="<?php echo $id;?>" style="opacity: 0;">
				<input name="bigtype17<?php echo (string)($i);?>" value="1" style="opacity: 0;">
				<input name="is_add17<?php echo (string)($i);?>"  value="<? echo $row['id'];?>" style="opacity: 0;">
				<input name="day17<?php echo (string)($i);?>"  value="8" style="opacity: 0;">
			</form>
		</div>
		
		<?php
		    $i++;
			$k++;
		}
		?>
		<?php
		//补全3张图片
		for($i=0;$i<3-$num;$i++){
		?>
		<div style="float:left;width:320px;height:150px;background-color:#FFFFFF;margin:10px 0px 0px 10px;border:1px solid #C9CACA;padding:64px 0 0 88px;">
			<input style="width:145px;height:23px;text-align:center;border:1px solid #DA4713;color:#DA4713;font-family:微软雅黑;font-size:14px;border-radius:3px;" value="选择驴行图片"></input>
			<form action="upload_file1.php" method="post" enctype="multipart/form-data" id="upload_user_img9<?php echo $i+$num+1;?>">
				<label for="file" style="opacity: 0;">Filename:</label>
				<input type="file" name="file" id="file" style="width:145px;height:23px;text-align:center;border:1px solid #DA4713;color:#DA4713;font-family:微软雅黑;font-size:14px;border-radius:3px;margin-top:-48px;opacity: 0;" onchange="change_picture9<?php echo $i+$num+1;?>()"></input>
				<input name="id"  value="<?php echo $id;?>" style="opacity: 0;">
				<input name="bigtype17<?php echo (string)($num+$i+1);?>" value="1" style="opacity: 0;">
				<input name="is_add17<?php echo (string)($num+$i+1);?>"  value="<?php $row['id'];?>" style="opacity: 0;">
				<input name="day17<?php echo (string)($num+$i+1);?>"  value="8" style="opacity: 0;">
			</form>
		</div>
		<?php } ?>
		
		<SCRIPT>
		function change_picture91(){
			$("#upload_user_img91").submit();
		}
		function change_picture92(){
			$("#upload_user_img92").submit();
		}
		function change_picture93(){
			$("#upload_user_img93").submit();
		}
		</SCRIPT>
		<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">图片描述1</a>
		<input  type="text" id="tupianmiaoshu81" style="float:left;width:350px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 79px;" placeholder="请填写行程标题" value="<?php echo $tupianmiaoshu81;?>"></input>	
		
		<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">图片描述2</a>
		<input  type="text" id="tupianmiaoshu82" style="float:left;width:350px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 79px;" placeholder="请填写行程标题" value="<?php echo $tupianmiaoshu82;?>"></input>	
		
		<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">图片描述3</a>
		<input  type="text" id="tupianmiaoshu83" style="float:left;width:350px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 79px;" placeholder="请填写行程标题" value="<?php echo $tupianmiaoshu83;?>"></input>	
		
		<div style="clear:left;width:320px;height:20px;"></div>
		<input style="clear:left;width:148.5px;height:34px;border-radius:2px;background-color:#DA4713;color:#FFFFFF;font-family:微软雅黑;font-size:14px;border:1px;text-align:center; cursor:pointer;margin-top:0px;" value="确认" onclick="up_day_picture_8();" ></input>
		<input id="day_biaoshi_81" value="8" style="opacity:0;">
		</div>
		<SCRIPT>
		function up_day_picture_8(){
			day_biaoshi=document.getElementById("day_biaoshi_81").value;
			tupianmiaoshu11=document.getElementById("tupianmiaoshu81").value;
			tupianmiaoshu12=document.getElementById("tupianmiaoshu82").value;
			tupianmiaoshu13=document.getElementById("tupianmiaoshu83").value;
			
			var url="getmessage_all.php?bigtype=19&id=<?php echo $id;?>";
			url=url+"&day_biaoshi="+day_biaoshi;
			url=url+"&tupianmiaoshu11="+tupianmiaoshu11;
			url=url+"&tupianmiaoshu12="+tupianmiaoshu12;
			url=url+"&tupianmiaoshu13="+tupianmiaoshu13;
			$.ajax({
				type:"GET",
				url:url,
				dataType: "json",
				success: function(data){	
					if(data['code']==0001){
						alert(data['reason']);
						window.location.href='index.php?id='+data['id'];  
					}else{
						alert(data['reason']);
					}
				}
			});
			
		}
		</SCRIPT>
			
			<!--------------------------------------------------第9天----------------------------------------------->
			<div id="day9" style="display:none">
			<a style="clear:left;text-align:center;color:#ff0000;font-family:微软雅黑;font-size:18px;">第九天</a>
			<?php 
			//查询第9天信息
			$sql="SELECT * FROM `xingcheng_day_info` WHERE difang_id='$id' and day='9'";
			$query = mysql_query($sql);
			while($row = mysql_fetch_array($query)){
				$zisheng_id9          =  $row['id'];
				$xingcheng9_biaoti    =  $row['biaoti'];
				$xingcheng9_type1     =  $row['tubiao_type1'];
				$xingcheng9_nairong1  =  $row['nairong1'];
				$xingcheng9_type2     =  $row['tubiao_type2'];
				$xingcheng9_nairong2  =  $row['nairong2'];
				$xingcheng9_type3     =  $row['tubiao_type3'];
				$xingcheng9_nairong3  =  $row['nairong3'];
				$xingcheng9_type4     =  $row['tubiao_type4'];
				$xingcheng9_nairong4  =  $row['nairong4'];
			}
			
			?>
			<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">标题</a>
			<input  type="text" id="xingcheng9_biaoti" style="float:left;width:350px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 79px;" placeholder="请填写行程标题" value="<?php echo $xingcheng9_biaoti;?>"></input>

			<select id="xingcheng9_type1" style="clear:left;float:left;width:100px;height:25px;border-radius:5px 0px 0px 5px;border:1px solid #D6D7D7;cursor:pointer;padding-left:8px;margin:20px 0px 0px 0px;">
				<option value="0">选择类型</option>
				<option value="2">交通</option>
				<option value="4">行程</option>
				<option value="3">住宿</option>
				<option value="5">餐饮</option>
			</select>
			<input  type="text" id="xingcheng9_nairong1" style="float:left;width:610px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 7px;" placeholder="请填写内容" value="<?php echo $xingcheng9_nairong1;?>"></input>
			
			<select id="xingcheng9_type2" style="clear:left;float:left;width:100px;height:25px;border-radius:5px 0px 0px 5px;border:1px solid #D6D7D7;cursor:pointer;padding-left:8px;margin:20px 0px 0px 0px;">
				<option value="0">选择类型</option>
				<option value="2">交通</option>
				<option value="4">行程</option>
				<option value="3">住宿</option>
				<option value="5">餐饮</option>
			</select>
			<input  type="text" id="xingcheng9_nairong2" style="float:left;width:610px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 7px;" placeholder="请填写内容" value="<?php echo $xingcheng9_nairong2;?>"></input>
			
			<select id="xingcheng9_type3" style="clear:left;float:left;width:100px;height:25px;border-radius:5px 0px 0px 5px;border:1px solid #D6D7D7;cursor:pointer;padding-left:8px;margin:20px 0px 0px 0px;">
				<option value="0">选择类型</option>
				<option value="2">交通</option>
				<option value="4">行程</option>
				<option value="3">住宿</option>
				<option value="5">餐饮</option>
			</select>
			<input  type="text" id="xingcheng9_nairong3" style="float:left;width:610px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 7px;" placeholder="请填写内容" value="<?php echo $xingcheng9_nairong3;?>"></input>
			
			<select id="xingcheng9_type4" style="clear:left;float:left;width:100px;height:25px;border-radius:5px 0px 0px 5px;border:1px solid #D6D7D7;cursor:pointer;padding-left:8px;margin:20px 0px 0px 0px;">
				<option value="0">选择类型</option>
				<option value="2">交通</option>
				<option value="4">行程</option>
				<option value="3">住宿</option>
				<option value="5">餐饮</option>
			</select>
			<input  type="text" id="xingcheng9_nairong4" style="float:left;width:610px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 7px;" placeholder="请填写内容" value="<?php echo $xingcheng9_nairong4;?>"></input>
			
			<a style="opacity:0;" id="zisheng_id9"><?php echo $zisheng_id9;?></a><!--自身id标识段，这个很重要-->
			
			<div style="clear:left;width:320px;height:20px;"></div>
			<input style="clear:left;width:148.5px;height:34px;border-radius:2px;background-color:#DA4713;color:#FFFFFF;font-family:微软雅黑;font-size:14px;border:1px;text-align:center; cursor:pointer;margin-top:0px;" value="确认" onclick="up_day_9();" ></input>
			
			<a style="text-align:center;color:#ff0000;font-family:微软雅黑;font-size:18px;">第九天所附图片及描述</a>
			<?php
		$i=1;
		$k=1;
		$sql="SELECT * FROM `picture_day_info` WHERE difang_id='$id' and type='1' and day='9' order by id";
		$query = mysql_query($sql);
		$num=mysql_num_rows($query);
		while($row = mysql_fetch_array($query)){
			if($i==1){
				$tupianmiaoshu91=$row['picture_miaoshu'];
			}
			if($i==2){
				$tupianmiaoshu92=$row['picture_miaoshu'];
			}
			if($i==3){
				$tupianmiaoshu93=$row['picture_miaoshu'];
			}
			//$single_kk=$row['key'];
		?>
		<div style="float:left;width:320px;height:150px;margin:10px 0px 0px 10px;background-image:url(<?php echo $row['picture_path'];?>);background-repeat:repeat;background-size:100% 100%;">
			<form action="upload_file1.php" method="post" enctype="multipart/form-data" id="upload_user_img10<?php echo $k;?>">
				<label for="file" style="opacity: 0;">Filename:</label>
				<input type="file" name="file" id="file" style="float:left;width:320px;height:150px;text-align:center;border:1px solid #DA4713;color:#DA4713;font-family:微软雅黑;font-size:14px;border-radius:3px;margin-top:0px;margin-left:0px;opacity: 0;" onchange="change_picture10<?php echo $k;?>()"></input>
				<input name="id" value="<?php echo $id;?>" style="opacity: 0;">
				<input name="bigtype18<?php echo (string)($i);?>" value="1" style="opacity: 0;">
				<input name="is_add18<?php echo (string)($i);?>"  value="<? echo $row['id'];?>" style="opacity: 0;">
				<input name="day18<?php echo (string)($i);?>"  value="9" style="opacity: 0;">
			</form>
		</div>
		
		<?php
		    $i++;
			$k++;
		}
		?>
		<?php
		//补全3张图片
		for($i=0;$i<3-$num;$i++){
		?>
		<div style="float:left;width:320px;height:150px;background-color:#FFFFFF;margin:10px 0px 0px 10px;border:1px solid #C9CACA;padding:64px 0 0 88px;">
			<input style="width:145px;height:23px;text-align:center;border:1px solid #DA4713;color:#DA4713;font-family:微软雅黑;font-size:14px;border-radius:3px;" value="选择驴行图片"></input>
			<form action="upload_file1.php" method="post" enctype="multipart/form-data" id="upload_user_img10<?php echo $i+$num+1;?>">
				<label for="file" style="opacity: 0;">Filename:</label>
				<input type="file" name="file" id="file" style="width:145px;height:23px;text-align:center;border:1px solid #DA4713;color:#DA4713;font-family:微软雅黑;font-size:14px;border-radius:3px;margin-top:-48px;opacity: 0;" onchange="change_picture10<?php echo $i+$num+1;?>()"></input>
				<input name="id"  value="<?php echo $id;?>" style="opacity: 0;">
				<input name="bigtype18<?php echo (string)($num+$i+1);?>" value="1" style="opacity: 0;">
				<input name="is_add18<?php echo (string)($num+$i+1);?>"  value="<?php $row['id'];?>" style="opacity: 0;">
				<input name="day18<?php echo (string)($num+$i+1);?>"  value="9" style="opacity: 0;">
			</form>
		</div>
		<?php } ?>
		
		<SCRIPT>
		function change_picture101(){
			$("#upload_user_img101").submit();
		}
		function change_picture102(){
			$("#upload_user_img102").submit();
		}
		function change_picture103(){
			$("#upload_user_img103").submit();
		}
		</SCRIPT>
		<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">图片描述1</a>
		<input  type="text" id="tupianmiaoshu91" style="float:left;width:350px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 79px;" placeholder="请填写行程标题" value="<?php echo $tupianmiaoshu91;?>"></input>	
		
		<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">图片描述2</a>
		<input  type="text" id="tupianmiaoshu92" style="float:left;width:350px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 79px;" placeholder="请填写行程标题" value="<?php echo $tupianmiaoshu92;?>"></input>	
		
		<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">图片描述3</a>
		<input  type="text" id="tupianmiaoshu93" style="float:left;width:350px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 79px;" placeholder="请填写行程标题" value="<?php echo $tupianmiaoshu93;?>"></input>	
		
		<div style="clear:left;width:320px;height:20px;"></div>
		<input style="clear:left;width:148.5px;height:34px;border-radius:2px;background-color:#DA4713;color:#FFFFFF;font-family:微软雅黑;font-size:14px;border:1px;text-align:center; cursor:pointer;margin-top:0px;" value="确认" onclick="up_day_picture_9();" ></input>
		<input id="day_biaoshi_91" value="9" style="opacity:0;">
		</div>
		<SCRIPT>
		function up_day_picture_9(){
			day_biaoshi=document.getElementById("day_biaoshi_91").value;
			tupianmiaoshu11=document.getElementById("tupianmiaoshu91").value;
			tupianmiaoshu12=document.getElementById("tupianmiaoshu92").value;
			tupianmiaoshu13=document.getElementById("tupianmiaoshu93").value;
			
			var url="getmessage_all.php?bigtype=19&id=<?php echo $id;?>";
			url=url+"&day_biaoshi="+day_biaoshi;
			url=url+"&tupianmiaoshu11="+tupianmiaoshu11;
			url=url+"&tupianmiaoshu12="+tupianmiaoshu12;
			url=url+"&tupianmiaoshu13="+tupianmiaoshu13;
			$.ajax({
				type:"GET",
				url:url,
				dataType: "json",
				success: function(data){	
					if(data['code']==0001){
						alert(data['reason']);
						window.location.href='index.php?id='+data['id'];  
					}else{
						alert(data['reason']);
					}
				}
			});
			
		}
		</SCRIPT>
			
			<!--------------------------------------------------第10天----------------------------------------------->
			<div id="day10" style="display:none">
			<a style="clear:left;text-align:center;color:#ff0000;font-family:微软雅黑;font-size:18px;">第十天</a>
			<?php 
			//查询第9天信息
			$sql="SELECT * FROM `xingcheng_day_info` WHERE difang_id='$id' and day='10'";
			$query = mysql_query($sql);
			while($row = mysql_fetch_array($query)){
				$zisheng_id10          =  $row['id'];
				$xingcheng10_biaoti    =  $row['biaoti'];
				$xingcheng10_type1     =  $row['tubiao_type1'];
				$xingcheng10_nairong1  =  $row['nairong1'];
				$xingcheng10_type2     =  $row['tubiao_type2'];
				$xingcheng10_nairong2  =  $row['nairong2'];
				$xingcheng10_type3     =  $row['tubiao_type3'];
				$xingcheng10_nairong3  =  $row['nairong3'];
				$xingcheng10_type4     =  $row['tubiao_type4'];
				$xingcheng10_nairong4  =  $row['nairong4'];
			}
			
			?>
			<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">标题</a>
			<input  type="text" id="xingcheng10_biaoti" style="float:left;width:350px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 79px;" placeholder="请填写行程标题" value="<?php echo $xingcheng10_biaoti;?>"></input>

			<select id="xingcheng10_type1" style="clear:left;float:left;width:100px;height:25px;border-radius:5px 0px 0px 5px;border:1px solid #D6D7D7;cursor:pointer;padding-left:8px;margin:20px 0px 0px 0px;">
				<option value="0">选择类型</option>
				<option value="2">交通</option>
				<option value="4">行程</option>
				<option value="3">住宿</option>
				<option value="5">餐饮</option>
			</select>
			<input  type="text" id="xingcheng10_nairong1" style="float:left;width:610px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 7px;" placeholder="请填写内容" value="<?php echo $xingcheng10_nairong1;?>"></input>
			
			<select id="xingcheng10_type2" style="clear:left;float:left;width:100px;height:25px;border-radius:5px 0px 0px 5px;border:1px solid #D6D7D7;cursor:pointer;padding-left:8px;margin:20px 0px 0px 0px;">
				<option value="0">选择类型</option>
				<option value="2">交通</option>
				<option value="4">行程</option>
				<option value="3">住宿</option>
				<option value="5">餐饮</option>
			</select>
			<input  type="text" id="xingcheng10_nairong2" style="float:left;width:610px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 7px;" placeholder="请填写内容" value="<?php echo $xingcheng10_nairong2;?>"></input>
			
			<select id="xingcheng10_type3" style="clear:left;float:left;width:100px;height:25px;border-radius:5px 0px 0px 5px;border:1px solid #D6D7D7;cursor:pointer;padding-left:8px;margin:20px 0px 0px 0px;">
				<option value="0">选择类型</option>
				<option value="2">交通</option>
				<option value="4">行程</option>
				<option value="3">住宿</option>
				<option value="5">餐饮</option>
			</select>
			<input  type="text" id="xingcheng10_nairong3" style="float:left;width:610px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 7px;" placeholder="请填写内容" value="<?php echo $xingcheng10_nairong3;?>"></input>
			
			<select id="xingcheng10_type4" style="clear:left;float:left;width:100px;height:25px;border-radius:5px 0px 0px 5px;border:1px solid #D6D7D7;cursor:pointer;padding-left:8px;margin:20px 0px 0px 0px;">
				<option value="0">选择类型</option>
				<option value="2">交通</option>
				<option value="4">行程</option>
				<option value="3">住宿</option>
				<option value="5">餐饮</option>
			</select>
			<input  type="text" id="xingcheng10_nairong4" style="float:left;width:610px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 7px;" placeholder="请填写内容" value="<?php echo $xingcheng10_nairong4;?>"></input>
			
			<a style="opacity:0;" id="zisheng_id10"><?php echo $zisheng_id10;?></a><!--自身id标识段，这个很重要-->
			
			<div style="clear:left;width:320px;height:20px;"></div>
			<input style="clear:left;width:148.5px;height:34px;border-radius:2px;background-color:#DA4713;color:#FFFFFF;font-family:微软雅黑;font-size:14px;border:1px;text-align:center; cursor:pointer;margin-top:0px;" value="确认" onclick="up_day_10();" ></input>
			
			
			<a style="text-align:center;color:#ff0000;font-family:微软雅黑;font-size:18px;">第十天所附图片及描述</a>
			<?php
		$i=1;
		$k=1;
		$sql="SELECT * FROM `picture_day_info` WHERE difang_id='$id' and type='1' and day='10' order by id";
		$query = mysql_query($sql);
		$num=mysql_num_rows($query);
		while($row = mysql_fetch_array($query)){
			if($i==1){
				$tupianmiaoshu101=$row['picture_miaoshu'];
			}
			if($i==2){
				$tupianmiaoshu102=$row['picture_miaoshu'];
			}
			if($i==3){
				$tupianmiaoshu103=$row['picture_miaoshu'];
			}
			//$single_kk=$row['key'];
		?>
		<div style="float:left;width:320px;height:150px;margin:10px 0px 0px 10px;background-image:url(<?php echo $row['picture_path'];?>);background-repeat:repeat;background-size:100% 100%;">
			<form action="upload_file1.php" method="post" enctype="multipart/form-data" id="upload_user_img11<?php echo $k;?>">
				<label for="file" style="opacity: 0;">Filename:</label>
				<input type="file" name="file" id="file" style="float:left;width:320px;height:150px;text-align:center;border:1px solid #DA4713;color:#DA4713;font-family:微软雅黑;font-size:14px;border-radius:3px;margin-top:0px;margin-left:0px;opacity: 0;" onchange="change_picture11<?php echo $k;?>()"></input>
				<input name="id" value="<?php echo $id;?>" style="opacity: 0;">
				<input name="bigtype19<?php echo (string)($i);?>" value="1" style="opacity: 0;">
				<input name="is_add19<?php echo (string)($i);?>"  value="<? echo $row['id'];?>" style="opacity: 0;">
				<input name="day19<?php echo (string)($i);?>"  value="10" style="opacity: 0;">
			</form>
		</div>
		
		<?php
		    $i++;
			$k++;
		}
		?>
		<?php
		//补全3张图片
		for($i=0;$i<3-$num;$i++){
		?>
		<div style="float:left;width:320px;height:150px;background-color:#FFFFFF;margin:10px 0px 0px 10px;border:1px solid #C9CACA;padding:64px 0 0 88px;">
			<input style="width:145px;height:23px;text-align:center;border:1px solid #DA4713;color:#DA4713;font-family:微软雅黑;font-size:14px;border-radius:3px;" value="选择驴行图片"></input>
			<form action="upload_file1.php" method="post" enctype="multipart/form-data" id="upload_user_img11<?php echo $i+$num+1;?>">
				<label for="file" style="opacity: 0;">Filename:</label>
				<input type="file" name="file" id="file" style="width:145px;height:23px;text-align:center;border:1px solid #DA4713;color:#DA4713;font-family:微软雅黑;font-size:14px;border-radius:3px;margin-top:-48px;opacity: 0;" onchange="change_picture11<?php echo $i+$num+1;?>()"></input>
				<input name="id"  value="<?php echo $id;?>" style="opacity: 0;">
				<input name="bigtype19<?php echo (string)($num+$i+1);?>" value="1" style="opacity: 0;">
				<input name="is_add19<?php echo (string)($num+$i+1);?>"  value="<?php $row['id'];?>" style="opacity: 0;">
				<input name="day19<?php echo (string)($num+$i+1);?>"  value="10" style="opacity: 0;">
			</form>
		</div>
		<?php } ?>
		
		<SCRIPT>
		function change_picture111(){
			$("#upload_user_img111").submit();
		}
		function change_picture112(){
			$("#upload_user_img112").submit();
		}
		function change_picture113(){
			$("#upload_user_img113").submit();
		}
		</SCRIPT>
		<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">图片描述1</a>
		<input  type="text" id="tupianmiaoshu101" style="float:left;width:350px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 79px;" placeholder="请填写行程标题" value="<?php echo $tupianmiaoshu101;?>"></input>	
		
		<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">图片描述2</a>
		<input  type="text" id="tupianmiaoshu102" style="float:left;width:350px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 79px;" placeholder="请填写行程标题" value="<?php echo $tupianmiaoshu102;?>"></input>	
		
		<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">图片描述3</a>
		<input  type="text" id="tupianmiaoshu103" style="float:left;width:350px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 79px;" placeholder="请填写行程标题" value="<?php echo $tupianmiaoshu103;?>"></input>	
		
		<div style="clear:left;width:320px;height:20px;"></div>
		<input style="clear:left;width:148.5px;height:34px;border-radius:2px;background-color:#DA4713;color:#FFFFFF;font-family:微软雅黑;font-size:14px;border:1px;text-align:center; cursor:pointer;margin-top:0px;" value="确认" onclick="up_day_picture_10();" ></input>
		<input id="day_biaoshi_101" value="10" style="opacity:0;">
		</div>
		<SCRIPT>
		function up_day_picture_10(){
			day_biaoshi=document.getElementById("day_biaoshi_101").value;
			tupianmiaoshu11=document.getElementById("tupianmiaoshu101").value;
			tupianmiaoshu12=document.getElementById("tupianmiaoshu102").value;
			tupianmiaoshu13=document.getElementById("tupianmiaoshu103").value;
			
			var url="getmessage_all.php?bigtype=19&id=<?php echo $id;?>";
			url=url+"&day_biaoshi="+day_biaoshi;
			url=url+"&tupianmiaoshu11="+tupianmiaoshu11;
			url=url+"&tupianmiaoshu12="+tupianmiaoshu12;
			url=url+"&tupianmiaoshu13="+tupianmiaoshu13;
			$.ajax({
				type:"GET",
				url:url,
				dataType: "json",
				success: function(data){	
					if(data['code']==0001){
						alert(data['reason']);
						window.location.href='index.php?id='+data['id'];  
					}else{
						alert(data['reason']);
					}
				}
			});
			
		}
		</SCRIPT>
			
			<!--------------------------------------------------第11天----------------------------------------------->
			<div id="day11" style="display:none">
			<a style="clear:left;text-align:center;color:#ff0000;font-family:微软雅黑;font-size:18px;">第十一天</a>
			<?php 
			//查询第9天信息
			$sql="SELECT * FROM `xingcheng_day_info` WHERE difang_id='$id' and day='11'";
			$query = mysql_query($sql);
			while($row = mysql_fetch_array($query)){
				$zisheng_id11          =  $row['id'];
				$xingcheng11_biaoti    =  $row['biaoti'];
				$xingcheng11_type1     =  $row['tubiao_type1'];
				$xingcheng11_nairong1  =  $row['nairong1'];
				$xingcheng11_type2     =  $row['tubiao_type2'];
				$xingcheng11_nairong2  =  $row['nairong2'];
				$xingcheng11_type3     =  $row['tubiao_type3'];
				$xingcheng11_nairong3  =  $row['nairong3'];
				$xingcheng11_type4     =  $row['tubiao_type4'];
				$xingcheng11_nairong4  =  $row['nairong4'];
			}
			
			?>
			<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">标题</a>
			<input  type="text" id="xingcheng11_biaoti" style="float:left;width:350px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 79px;" placeholder="请填写行程标题" value="<?php echo $xingcheng11_biaoti;?>"></input>

			<select id="xingcheng11_type1" style="clear:left;float:left;width:100px;height:25px;border-radius:5px 0px 0px 5px;border:1px solid #D6D7D7;cursor:pointer;padding-left:8px;margin:20px 0px 0px 0px;">
				<option value="0">选择类型</option>
				<option value="2">交通</option>
				<option value="4">行程</option>
				<option value="3">住宿</option>
				<option value="5">餐饮</option>
			</select>
			<input  type="text" id="xingcheng11_nairong1" style="float:left;width:610px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 7px;" placeholder="请填写内容" value="<?php echo $xingcheng11_nairong1;?>"></input>
			
			<select id="xingcheng11_type2" style="clear:left;float:left;width:100px;height:25px;border-radius:5px 0px 0px 5px;border:1px solid #D6D7D7;cursor:pointer;padding-left:8px;margin:20px 0px 0px 0px;">
				<option value="0">选择类型</option>
				<option value="2">交通</option>
				<option value="4">行程</option>
				<option value="3">住宿</option>
				<option value="5">餐饮</option>
			</select>
			<input  type="text" id="xingcheng11_nairong2" style="float:left;width:610px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 7px;" placeholder="请填写内容" value="<?php echo $xingcheng11_nairong2;?>"></input>
			
			<select id="xingcheng11_type3" style="clear:left;float:left;width:100px;height:25px;border-radius:5px 0px 0px 5px;border:1px solid #D6D7D7;cursor:pointer;padding-left:8px;margin:20px 0px 0px 0px;">
				<option value="0">选择类型</option>
				<option value="2">交通</option>
				<option value="4">行程</option>
				<option value="3">住宿</option>
				<option value="5">餐饮</option>
			</select>
			<input  type="text" id="xingcheng11_nairong3" style="float:left;width:610px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 7px;" placeholder="请填写内容" value="<?php echo $xingcheng11_nairong3;?>"></input>
			
			<select id="xingcheng11_type4" style="clear:left;float:left;width:100px;height:25px;border-radius:5px 0px 0px 5px;border:1px solid #D6D7D7;cursor:pointer;padding-left:8px;margin:20px 0px 0px 0px;">
				<option value="0">选择类型</option>
				<option value="2">交通</option>
				<option value="4">行程</option>
				<option value="3">住宿</option>
				<option value="5">餐饮</option>
			</select>
			<input  type="text" id="xingcheng11_nairong4" style="float:left;width:610px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 7px;" placeholder="请填写内容" value="<?php echo $xingcheng11_nairong4;?>"></input>
			
			<a style="opacity:0;" id="zisheng_id11"><?php echo $zisheng_id11;?></a><!--自身id标识段，这个很重要-->
			
			<div style="clear:left;width:320px;height:20px;"></div>
			<input style="clear:left;width:148.5px;height:34px;border-radius:2px;background-color:#DA4713;color:#FFFFFF;font-family:微软雅黑;font-size:14px;border:1px;text-align:center; cursor:pointer;margin-top:0px;" value="确认" onclick="up_day_11();" ></input>
			
			<a style="text-align:center;color:#ff0000;font-family:微软雅黑;font-size:18px;">第十一天所附图片及描述</a>
			<?php
		$i=1;
		$k=1;
		$sql="SELECT * FROM `picture_day_info` WHERE difang_id='$id' and type='1' and day='11' order by id";
		$query = mysql_query($sql);
		$num=mysql_num_rows($query);
		while($row = mysql_fetch_array($query)){
			if($i==1){
				$tupianmiaoshu111=$row['picture_miaoshu'];
			}
			if($i==2){
				$tupianmiaoshu112=$row['picture_miaoshu'];
			}
			if($i==3){
				$tupianmiaoshu113=$row['picture_miaoshu'];
			}
			//$single_kk=$row['key'];
		?>
		<div style="float:left;width:320px;height:150px;margin:10px 0px 0px 10px;background-image:url(<?php echo $row['picture_path'];?>);background-repeat:repeat;background-size:100% 100%;">
			<form action="upload_file1.php" method="post" enctype="multipart/form-data" id="upload_user_img12<?php echo $k;?>">
				<label for="file" style="opacity: 0;">Filename:</label>
				<input type="file" name="file" id="file" style="float:left;width:320px;height:150px;text-align:center;border:1px solid #DA4713;color:#DA4713;font-family:微软雅黑;font-size:14px;border-radius:3px;margin-top:0px;margin-left:0px;opacity: 0;" onchange="change_picture12<?php echo $k;?>()"></input>
				<input name="id" value="<?php echo $id;?>" style="opacity: 0;">
				<input name="bigtype110<?php echo (string)($i);?>" value="1" style="opacity: 0;">
				<input name="is_add110<?php echo (string)($i);?>"  value="<? echo $row['id'];?>" style="opacity: 0;">
				<input name="day110<?php echo (string)($i);?>"  value="11" style="opacity: 0;">
			</form>
		</div>
		
		<?php
		    $i++;
			$k++;
		}
		?>
		<?php
		//补全3张图片
		for($i=0;$i<3-$num;$i++){
		?>
		<div style="float:left;width:320px;height:150px;background-color:#FFFFFF;margin:10px 0px 0px 10px;border:1px solid #C9CACA;padding:64px 0 0 88px;">
			<input style="width:145px;height:23px;text-align:center;border:1px solid #DA4713;color:#DA4713;font-family:微软雅黑;font-size:14px;border-radius:3px;" value="选择驴行图片"></input>
			<form action="upload_file1.php" method="post" enctype="multipart/form-data" id="upload_user_img12<?php echo $i+$num+1;?>">
				<label for="file" style="opacity: 0;">Filename:</label>
				<input type="file" name="file" id="file" style="width:145px;height:23px;text-align:center;border:1px solid #DA4713;color:#DA4713;font-family:微软雅黑;font-size:14px;border-radius:3px;margin-top:-48px;opacity: 0;" onchange="change_picture12<?php echo $i+$num+1;?>()"></input>
				<input name="id"  value="<?php echo $id;?>" style="opacity: 0;">
				<input name="bigtype110<?php echo (string)($num+$i+1);?>" value="1" style="opacity: 0;">
				<input name="is_add110<?php echo (string)($num+$i+1);?>"  value="<?php $row['id'];?>" style="opacity: 0;">
				<input name="day110<?php echo (string)($num+$i+1);?>"  value="11" style="opacity: 0;">
			</form>
		</div>
		<?php } ?>
		
		<SCRIPT>
		function change_picture121(){
			$("#upload_user_img121").submit();
		}
		function change_picture122(){
			$("#upload_user_img122").submit();
		}
		function change_picture123(){
			$("#upload_user_img123").submit();
		}
		</SCRIPT>
		<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">图片描述1</a>
		<input  type="text" id="tupianmiaoshu111" style="float:left;width:350px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 79px;" placeholder="请填写行程标题" value="<?php echo $tupianmiaoshu111;?>"></input>	
		
		<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">图片描述2</a>
		<input  type="text" id="tupianmiaoshu112" style="float:left;width:350px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 79px;" placeholder="请填写行程标题" value="<?php echo $tupianmiaoshu112;?>"></input>	
		
		<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">图片描述3</a>
		<input  type="text" id="tupianmiaoshu113" style="float:left;width:350px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 79px;" placeholder="请填写行程标题" value="<?php echo $tupianmiaoshu113;?>"></input>	
		
		<div style="clear:left;width:320px;height:20px;"></div>
		<input style="clear:left;width:148.5px;height:34px;border-radius:2px;background-color:#DA4713;color:#FFFFFF;font-family:微软雅黑;font-size:14px;border:1px;text-align:center; cursor:pointer;margin-top:0px;" value="确认" onclick="up_day_picture_11();" ></input>
		<input id="day_biaoshi_111" value="11" style="opacity:0;">
		</div>
		<SCRIPT>
		function up_day_picture_11(){
			day_biaoshi=document.getElementById("day_biaoshi_111").value;
			tupianmiaoshu11=document.getElementById("tupianmiaoshu111").value;
			tupianmiaoshu12=document.getElementById("tupianmiaoshu112").value;
			tupianmiaoshu13=document.getElementById("tupianmiaoshu113").value;
			
			var url="getmessage_all.php?bigtype=19&id=<?php echo $id;?>";
			url=url+"&day_biaoshi="+day_biaoshi;
			url=url+"&tupianmiaoshu11="+tupianmiaoshu11;
			url=url+"&tupianmiaoshu12="+tupianmiaoshu12;
			url=url+"&tupianmiaoshu13="+tupianmiaoshu13;
			$.ajax({
				type:"GET",
				url:url,
				dataType: "json",
				success: function(data){	
					if(data['code']==0001){
						alert(data['reason']);
						window.location.href='index.php?id='+data['id'];  
					}else{
						alert(data['reason']);
					}
				}
			});
			
		}
		</SCRIPT>
			
			<!--------------------------------------------------第12天----------------------------------------------->
			<div id="day12" style="display:none">
			<a style="clear:left;text-align:center;color:#ff0000;font-family:微软雅黑;font-size:18px;">第十二天</a>
			<?php 
			//查询第12天信息
			$sql="SELECT * FROM `xingcheng_day_info` WHERE difang_id='$id' and day='12'";
			$query = mysql_query($sql);
			while($row = mysql_fetch_array($query)){
				$zisheng_id12          =  $row['id'];
				$xingcheng12_biaoti    =  $row['biaoti'];
				$xingcheng12_type1     =  $row['tubiao_type1'];
				$xingcheng12_nairong1  =  $row['nairong1'];
				$xingcheng12_type2     =  $row['tubiao_type2'];
				$xingcheng12_nairong2  =  $row['nairong2'];
				$xingcheng12_type3     =  $row['tubiao_type3'];
				$xingcheng12_nairong3  =  $row['nairong3'];
				$xingcheng12_type4     =  $row['tubiao_type4'];
				$xingcheng12_nairong4  =  $row['nairong4'];
			}
			
			?>
			<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">标题</a>
			<input  type="text" id="xingcheng12_biaoti" style="float:left;width:350px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 79px;" placeholder="请填写行程标题" value="<?php echo $xingcheng12_biaoti;?>"></input>

			<select id="xingcheng12_type1" style="clear:left;float:left;width:100px;height:25px;border-radius:5px 0px 0px 5px;border:1px solid #D6D7D7;cursor:pointer;padding-left:8px;margin:20px 0px 0px 0px;">
				<option value="0">选择类型</option>
				<option value="2">交通</option>
				<option value="4">行程</option>
				<option value="3">住宿</option>
				<option value="5">餐饮</option>
			</select>
			<input  type="text" id="xingcheng12_nairong1" style="float:left;width:610px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 7px;" placeholder="请填写内容" value="<?php echo $xingcheng12_nairong1;?>"></input>
			
			<select id="xingcheng12_type2" style="clear:left;float:left;width:100px;height:25px;border-radius:5px 0px 0px 5px;border:1px solid #D6D7D7;cursor:pointer;padding-left:8px;margin:20px 0px 0px 0px;">
				<option value="0">选择类型</option>
				<option value="2">交通</option>
				<option value="4">行程</option>
				<option value="3">住宿</option>
				<option value="5">餐饮</option>
			</select>
			<input  type="text" id="xingcheng12_nairong2" style="float:left;width:610px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 7px;" placeholder="请填写内容" value="<?php echo $xingcheng12_nairong2;?>"></input>
			
			<select id="xingcheng12_type3" style="clear:left;float:left;width:100px;height:25px;border-radius:5px 0px 0px 5px;border:1px solid #D6D7D7;cursor:pointer;padding-left:8px;margin:20px 0px 0px 0px;">
				<option value="0">选择类型</option>
				<option value="2">交通</option>
				<option value="4">行程</option>
				<option value="3">住宿</option>
				<option value="5">餐饮</option>
			</select>
			<input  type="text" id="xingcheng12_nairong3" style="float:left;width:610px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 7px;" placeholder="请填写内容" value="<?php echo $xingcheng12_nairong3;?>"></input>
			
			<select id="xingcheng12_type4" style="clear:left;float:left;width:100px;height:25px;border-radius:5px 0px 0px 5px;border:1px solid #D6D7D7;cursor:pointer;padding-left:8px;margin:20px 0px 0px 0px;">
				<option value="0">选择类型</option>
				<option value="2">交通</option>
				<option value="4">行程</option>
				<option value="3">住宿</option>
				<option value="5">餐饮</option>
			</select>
			<input  type="text" id="xingcheng12_nairong4" style="float:left;width:610px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 7px;" placeholder="请填写内容" value="<?php echo $xingcheng12_nairong4;?>"></input>
			
			<a style="opacity:0;" id="zisheng_id12"><?php echo $zisheng_id12;?></a><!--自身id标识段，这个很重要-->
			
			<div style="clear:left;width:320px;height:20px;"></div>
			<input style="clear:left;width:148.5px;height:34px;border-radius:2px;background-color:#DA4713;color:#FFFFFF;font-family:微软雅黑;font-size:14px;border:1px;text-align:center; cursor:pointer;margin-top:0px;" value="确认" onclick="up_day_12();" ></input>
		
		<a style="text-align:center;color:#ff0000;font-family:微软雅黑;font-size:18px;">第十二天所附图片及描述</a>
			<?php
		$i=1;
		$k=1;
		$sql="SELECT * FROM `picture_day_info` WHERE difang_id='$id' and type='1' and day='12' order by id";
		$query = mysql_query($sql);
		$num=mysql_num_rows($query);
		while($row = mysql_fetch_array($query)){
			if($i==1){
				$tupianmiaoshu121=$row['picture_miaoshu'];
			}
			if($i==2){
				$tupianmiaoshu122=$row['picture_miaoshu'];
			}
			if($i==3){
				$tupianmiaoshu123=$row['picture_miaoshu'];
			}
			//$single_kk=$row['key'];
		?>
		<div style="float:left;width:320px;height:150px;margin:10px 0px 0px 10px;background-image:url(<?php echo $row['picture_path'];?>);background-repeat:repeat;background-size:100% 100%;">
			<form action="upload_file1.php" method="post" enctype="multipart/form-data" id="upload_user_img13<?php echo $k;?>">
				<label for="file" style="opacity: 0;">Filename:</label>
				<input type="file" name="file" id="file" style="float:left;width:320px;height:150px;text-align:center;border:1px solid #DA4713;color:#DA4713;font-family:微软雅黑;font-size:14px;border-radius:3px;margin-top:0px;margin-left:0px;opacity: 0;" onchange="change_picture13<?php echo $k;?>()"></input>
				<input name="id" value="<?php echo $id;?>" style="opacity: 0;">
				<input name="bigtype111<?php echo (string)($i);?>" value="1" style="opacity: 0;">
				<input name="is_add111<?php echo (string)($i);?>"  value="<? echo $row['id'];?>" style="opacity: 0;">
				<input name="day111<?php echo (string)($i);?>"  value="12" style="opacity: 0;">
			</form>
		</div>
		
		<?php
		    $i++;
			$k++;
		}
		?>
		<?php
		//补全3张图片
		for($i=0;$i<3-$num;$i++){
		?>
		<div style="float:left;width:320px;height:150px;background-color:#FFFFFF;margin:10px 0px 0px 10px;border:1px solid #C9CACA;padding:64px 0 0 88px;">
			<input style="width:145px;height:23px;text-align:center;border:1px solid #DA4713;color:#DA4713;font-family:微软雅黑;font-size:14px;border-radius:3px;" value="选择驴行图片"></input>
			<form action="upload_file1.php" method="post" enctype="multipart/form-data" id="upload_user_img13<?php echo $i+$num+1;?>">
				<label for="file" style="opacity: 0;">Filename:</label>
				<input type="file" name="file" id="file" style="width:145px;height:23px;text-align:center;border:1px solid #DA4713;color:#DA4713;font-family:微软雅黑;font-size:14px;border-radius:3px;margin-top:-48px;opacity: 0;" onchange="change_picture13<?php echo $i+$num+1;?>()"></input>
				<input name="id"  value="<?php echo $id;?>" style="opacity: 0;">
				<input name="bigtype111<?php echo (string)($num+$i+1);?>" value="1" style="opacity: 0;">
				<input name="is_add111<?php echo (string)($num+$i+1);?>"  value="<?php $row['id'];?>" style="opacity: 0;">
				<input name="day111<?php echo (string)($num+$i+1);?>"  value="12" style="opacity: 0;">
			</form>
		</div>
		<?php } ?>
		
		<SCRIPT>
		function change_picture131(){
			$("#upload_user_img131").submit();
		}
		function change_picture132(){
			$("#upload_user_img132").submit();
		}
		function change_picture133(){
			$("#upload_user_img133").submit();
		}
		</SCRIPT>
		<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">图片描述1</a>
		<input  type="text" id="tupianmiaoshu121" style="float:left;width:350px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 79px;" placeholder="请填写行程标题" value="<?php echo $tupianmiaoshu121;?>"></input>	
		
		<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">图片描述2</a>
		<input  type="text" id="tupianmiaoshu122" style="float:left;width:350px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 79px;" placeholder="请填写行程标题" value="<?php echo $tupianmiaoshu122;?>"></input>	
		
		<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">图片描述3</a>
		<input  type="text" id="tupianmiaoshu123" style="float:left;width:350px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 79px;" placeholder="请填写行程标题" value="<?php echo $tupianmiaoshu123;?>"></input>	
		
		<div style="clear:left;width:320px;height:20px;"></div>
		<input style="clear:left;width:148.5px;height:34px;border-radius:2px;background-color:#DA4713;color:#FFFFFF;font-family:微软雅黑;font-size:14px;border:1px;text-align:center; cursor:pointer;margin-top:0px;" value="确认" onclick="up_day_picture_12();" ></input>
		<input id="day_biaoshi_121" value="12" style="opacity:0;">
		</div>
		<SCRIPT>
		function up_day_picture_12(){
			day_biaoshi=document.getElementById("day_biaoshi_121").value;
			tupianmiaoshu11=document.getElementById("tupianmiaoshu121").value;
			tupianmiaoshu12=document.getElementById("tupianmiaoshu122").value;
			tupianmiaoshu13=document.getElementById("tupianmiaoshu123").value;
			
			var url="getmessage_all.php?bigtype=19&id=<?php echo $id;?>";
			url=url+"&day_biaoshi="+day_biaoshi;
			url=url+"&tupianmiaoshu11="+tupianmiaoshu11;
			url=url+"&tupianmiaoshu12="+tupianmiaoshu12;
			url=url+"&tupianmiaoshu13="+tupianmiaoshu13;
			$.ajax({
				type:"GET",
				url:url,
				dataType: "json",
				success: function(data){	
					if(data['code']==0001){
						alert(data['reason']);
						window.location.href='index.php?id='+data['id'];  
					}else{
						alert(data['reason']);
					}
				}
			});
			
		}
		</SCRIPT>
		
		<!--------------------------------------------------第13天----------------------------------------------->
			<div id="day13" style="display:none">
			<a style="clear:left;text-align:center;color:#ff0000;font-family:微软雅黑;font-size:18px;">第十三天</a>
			<?php 
			//查询第13天信息
			$sql="SELECT * FROM `xingcheng_day_info` WHERE difang_id='$id' and day='13'";
			$query = mysql_query($sql);
			while($row = mysql_fetch_array($query)){
				$zisheng_id13          =  $row['id'];
				$xingcheng13_biaoti    =  $row['biaoti'];
				$xingcheng13_type1     =  $row['tubiao_type1'];
				$xingcheng13_nairong1  =  $row['nairong1'];
				$xingcheng13_type2     =  $row['tubiao_type2'];
				$xingcheng13_nairong2  =  $row['nairong2'];
				$xingcheng13_type3     =  $row['tubiao_type3'];
				$xingcheng13_nairong3  =  $row['nairong3'];
				$xingcheng13_type4     =  $row['tubiao_type4'];
				$xingcheng13_nairong4  =  $row['nairong4'];
			}
			
			?>
			<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">标题</a>
			<input  type="text" id="xingcheng13_biaoti" style="float:left;width:350px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 79px;" placeholder="请填写行程标题" value="<?php echo $xingcheng13_biaoti;?>"></input>

			<select id="xingcheng13_type1" style="clear:left;float:left;width:100px;height:25px;border-radius:5px 0px 0px 5px;border:1px solid #D6D7D7;cursor:pointer;padding-left:8px;margin:20px 0px 0px 0px;">
				<option value="0">选择类型</option>
				<option value="2">交通</option>
				<option value="4">行程</option>
				<option value="3">住宿</option>
				<option value="5">餐饮</option>
			</select>
			<input  type="text" id="xingcheng13_nairong1" style="float:left;width:610px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 7px;" placeholder="请填写内容" value="<?php echo $xingcheng13_nairong1;?>"></input>
			
			<select id="xingcheng13_type2" style="clear:left;float:left;width:100px;height:25px;border-radius:5px 0px 0px 5px;border:1px solid #D6D7D7;cursor:pointer;padding-left:8px;margin:20px 0px 0px 0px;">
				<option value="0">选择类型</option>
				<option value="2">交通</option>
				<option value="4">行程</option>
				<option value="3">住宿</option>
				<option value="5">餐饮</option>
			</select>
			<input  type="text" id="xingcheng13_nairong2" style="float:left;width:610px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 7px;" placeholder="请填写内容" value="<?php echo $xingcheng13_nairong2;?>"></input>
			
			<select id="xingcheng13_type3" style="clear:left;float:left;width:100px;height:25px;border-radius:5px 0px 0px 5px;border:1px solid #D6D7D7;cursor:pointer;padding-left:8px;margin:20px 0px 0px 0px;">
				<option value="0">选择类型</option>
				<option value="2">交通</option>
				<option value="4">行程</option>
				<option value="3">住宿</option>
				<option value="5">餐饮</option>
			</select>
			<input  type="text" id="xingcheng13_nairong3" style="float:left;width:610px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 7px;" placeholder="请填写内容" value="<?php echo $xingcheng13_nairong3;?>"></input>
			
			<select id="xingcheng13_type4" style="clear:left;float:left;width:100px;height:25px;border-radius:5px 0px 0px 5px;border:1px solid #D6D7D7;cursor:pointer;padding-left:8px;margin:20px 0px 0px 0px;">
				<option value="0">选择类型</option>
				<option value="2">交通</option>
				<option value="4">行程</option>
				<option value="3">住宿</option>
				<option value="5">餐饮</option>
			</select>
			<input  type="text" id="xingcheng13_nairong4" style="float:left;width:610px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 7px;" placeholder="请填写内容" value="<?php echo $xingcheng13_nairong4;?>"></input>
			
			<a style="opacity:0;" id="zisheng_id13"><?php echo $zisheng_id13;?></a><!--自身id标识段，这个很重要-->
			
			<div style="clear:left;width:320px;height:20px;"></div>
			<input style="clear:left;width:148.5px;height:34px;border-radius:2px;background-color:#DA4713;color:#FFFFFF;font-family:微软雅黑;font-size:14px;border:1px;text-align:center; cursor:pointer;margin-top:0px;" value="确认" onclick="up_day_13();" ></input>
			
		<SCRIPT>
		function up_day_13(){
			zisheng_id                =        document.getElementById("zisheng_id13").innerHTML;
			xingcheng13_biaoti        =        document.getElementById("xingcheng13_biaoti").value;
			xingcheng13_type1         =        document.getElementById("xingcheng13_type1").value;
			xingcheng13_nairong1      =        document.getElementById("xingcheng13_nairong1").value;
			xingcheng13_type2         =        document.getElementById("xingcheng13_type2").value;
			xingcheng13_nairong2      =        document.getElementById("xingcheng13_nairong2").value;
			xingcheng13_type3         =        document.getElementById("xingcheng13_type3").value;
			xingcheng13_nairong3      =        document.getElementById("xingcheng13_nairong3").value;
			xingcheng13_type4         =        document.getElementById("xingcheng13_type4").value;
			xingcheng13_nairong4      =        document.getElementById("xingcheng13_nairong4").value;
			
			if(zisheng_id=="undifind"){
				zisheng_id="";
			}
			
			var url="getmessage_all.php?bigtype=20&id=<?php echo $id;?>";
			url=url+"&zisheng_id="+zisheng_id;
			url=url+"&xingcheng13_biaoti="+xingcheng13_biaoti;
			url=url+"&xingcheng13_type1="+xingcheng13_type1;
			url=url+"&xingcheng13_nairong1="+xingcheng13_nairong1;
			url=url+"&xingcheng13_type2="+xingcheng13_type2;
			url=url+"&xingcheng13_nairong2="+xingcheng13_nairong2;
			url=url+"&xingcheng13_type3="+xingcheng13_type3;
			url=url+"&xingcheng13_nairong3="+xingcheng13_nairong3;
			url=url+"&xingcheng13_type4="+xingcheng13_type4;
			url=url+"&xingcheng13_nairong4="+xingcheng13_nairong4;
			$.ajax({
				type:"GET",
				url:url,
				dataType: "json",
				success: function(data){	
					if(data['code']==0001){
						alert(data['reason']);
						window.location.href='index.php?id='+data['id'];  
					}else{
						alert(data['reason']);
					}
				}
			});
			
		}
		</SCRIPT>
		<a style="text-align:center;color:#ff0000;font-family:微软雅黑;font-size:18px;">第十三天所附图片及描述</a>
			<?php
		$i=1;
		$k=1;
		$sql="SELECT * FROM `picture_day_info` WHERE difang_id='$id' and type='1' and day='13' order by id";
		$query = mysql_query($sql);
		$num=mysql_num_rows($query);
		while($row = mysql_fetch_array($query)){
			if($i==1){
				$tupianmiaoshu131=$row['picture_miaoshu'];
			}
			if($i==2){
				$tupianmiaoshu132=$row['picture_miaoshu'];
			}
			if($i==3){
				$tupianmiaoshu133=$row['picture_miaoshu'];
			}
			//$single_kk=$row['key'];
		?>
		<div style="float:left;width:320px;height:150px;margin:10px 0px 0px 10px;background-image:url(<?php echo $row['picture_path'];?>);background-repeat:repeat;background-size:100% 100%;">
			<form action="upload_file1.php" method="post" enctype="multipart/form-data" id="upload_user_img14<?php echo $k;?>">
				<label for="file" style="opacity: 0;">Filename:</label>
				<input type="file" name="file" id="file" style="float:left;width:320px;height:150px;text-align:center;border:1px solid #DA4713;color:#DA4713;font-family:微软雅黑;font-size:14px;border-radius:3px;margin-top:0px;margin-left:0px;opacity: 0;" onchange="change_picture14<?php echo $k;?>()"></input>
				<input name="id" value="<?php echo $id;?>" style="opacity: 0;">
				<input name="bigtype112<?php echo (string)($i);?>" value="1" style="opacity: 0;">
				<input name="is_add112<?php echo (string)($i);?>"  value="<? echo $row['id'];?>" style="opacity: 0;">
				<input name="day112<?php echo (string)($i);?>"  value="13" style="opacity: 0;">
			</form>
		</div>
		
		<?php
		    $i++;
			$k++;
		}
		?>
		<?php
		//补全3张图片
		for($i=0;$i<3-$num;$i++){
		?>
		<div style="float:left;width:320px;height:150px;background-color:#FFFFFF;margin:10px 0px 0px 10px;border:1px solid #C9CACA;padding:64px 0 0 88px;">
			<input style="width:145px;height:23px;text-align:center;border:1px solid #DA4713;color:#DA4713;font-family:微软雅黑;font-size:14px;border-radius:3px;" value="选择驴行图片"></input>
			<form action="upload_file1.php" method="post" enctype="multipart/form-data" id="upload_user_img14<?php echo $i+$num+1;?>">
				<label for="file" style="opacity: 0;">Filename:</label>
				<input type="file" name="file" id="file" style="width:145px;height:23px;text-align:center;border:1px solid #DA4713;color:#DA4713;font-family:微软雅黑;font-size:14px;border-radius:3px;margin-top:-48px;opacity: 0;" onchange="change_picture14<?php echo $i+$num+1;?>()"></input>
				<input name="id"  value="<?php echo $id;?>" style="opacity: 0;">
				<input name="bigtype112<?php echo (string)($num+$i+1);?>" value="1" style="opacity: 0;">
				<input name="is_add112<?php echo (string)($num+$i+1);?>"  value="<?php $row['id'];?>" style="opacity: 0;">
				<input name="day112<?php echo (string)($num+$i+1);?>"  value="13" style="opacity: 0;">
			</form>
		</div>
		<?php } ?>
		
		<SCRIPT>
		function change_picture141(){
			$("#upload_user_img141").submit();
		}
		function change_picture142(){
			$("#upload_user_img142").submit();
		}
		function change_picture143(){
			$("#upload_user_img143").submit();
		}
		</SCRIPT>
		<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">图片描述1</a>
		<input  type="text" id="tupianmiaoshu131" style="float:left;width:350px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 79px;" placeholder="请填写行程标题" value="<?php echo $tupianmiaoshu131;?>"></input>	
		
		<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">图片描述2</a>
		<input  type="text" id="tupianmiaoshu132" style="float:left;width:350px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 79px;" placeholder="请填写行程标题" value="<?php echo $tupianmiaoshu132;?>"></input>	
		
		<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">图片描述3</a>
		<input  type="text" id="tupianmiaoshu133" style="float:left;width:350px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 79px;" placeholder="请填写行程标题" value="<?php echo $tupianmiaoshu133;?>"></input>	
		
		<div style="clear:left;width:320px;height:20px;"></div>
		<input style="clear:left;width:148.5px;height:34px;border-radius:2px;background-color:#DA4713;color:#FFFFFF;font-family:微软雅黑;font-size:14px;border:1px;text-align:center; cursor:pointer;margin-top:0px;" value="确认" onclick="up_day_picture_13();" ></input>
		<input id="day_biaoshi_131" value="13" style="opacity:0;">
		</div>
		<SCRIPT>
		function up_day_picture_13(){
			day_biaoshi=document.getElementById("day_biaoshi_131").value;
			tupianmiaoshu11=document.getElementById("tupianmiaoshu131").value;
			tupianmiaoshu12=document.getElementById("tupianmiaoshu132").value;
			tupianmiaoshu13=document.getElementById("tupianmiaoshu133").value;
			
			var url="getmessage_all.php?bigtype=19&id=<?php echo $id;?>";
			url=url+"&day_biaoshi="+day_biaoshi;
			url=url+"&tupianmiaoshu11="+tupianmiaoshu11;
			url=url+"&tupianmiaoshu12="+tupianmiaoshu12;
			url=url+"&tupianmiaoshu13="+tupianmiaoshu13;
			$.ajax({
				type:"GET",
				url:url,
				dataType: "json",
				success: function(data){	
					if(data['code']==0001){
						alert(data['reason']);
						window.location.href='index.php?id='+data['id'];  
					}else{
						alert(data['reason']);
					}
				}
			});
			
		}
		</SCRIPT>
		
		<!--------------------------------------------------第14天----------------------------------------------->
			<div id="day14" style="display:none">
			<a style="clear:left;text-align:center;color:#ff0000;font-family:微软雅黑;font-size:18px;">第十四天</a>
			<?php 
			//查询第13天信息
			$sql="SELECT * FROM `xingcheng_day_info` WHERE difang_id='$id' and day='14'";
			$query = mysql_query($sql);
			while($row = mysql_fetch_array($query)){
				$zisheng_id14          =  $row['id'];
				$xingcheng14_biaoti    =  $row['biaoti'];
				$xingcheng14_type1     =  $row['tubiao_type1'];
				$xingcheng14_nairong1  =  $row['nairong1'];
				$xingcheng14_type2     =  $row['tubiao_type2'];
				$xingcheng14_nairong2  =  $row['nairong2'];
				$xingcheng14_type3     =  $row['tubiao_type3'];
				$xingcheng14_nairong3  =  $row['nairong3'];
				$xingcheng14_type4     =  $row['tubiao_type4'];
				$xingcheng14_nairong4  =  $row['nairong4'];
			}
			
			?>
			<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">标题</a>
			<input  type="text" id="xingcheng14_biaoti" style="float:left;width:350px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 79px;" placeholder="请填写行程标题" value="<?php echo $xingcheng14_biaoti;?>"></input>

			<select id="xingcheng14_type1" style="clear:left;float:left;width:100px;height:25px;border-radius:5px 0px 0px 5px;border:1px solid #D6D7D7;cursor:pointer;padding-left:8px;margin:20px 0px 0px 0px;">
				<option value="0">选择类型</option>
				<option value="2">交通</option>
				<option value="4">行程</option>
				<option value="3">住宿</option>
				<option value="5">餐饮</option>
			</select>
			<input  type="text" id="xingcheng14_nairong1" style="float:left;width:610px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 7px;" placeholder="请填写内容" value="<?php echo $xingcheng14_nairong1;?>"></input>
			
			<select id="xingcheng14_type2" style="clear:left;float:left;width:100px;height:25px;border-radius:5px 0px 0px 5px;border:1px solid #D6D7D7;cursor:pointer;padding-left:8px;margin:20px 0px 0px 0px;">
				<option value="0">选择类型</option>
				<option value="2">交通</option>
				<option value="4">行程</option>
				<option value="3">住宿</option>
				<option value="5">餐饮</option>
			</select>
			<input  type="text" id="xingcheng14_nairong2" style="float:left;width:610px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 7px;" placeholder="请填写内容" value="<?php echo $xingcheng14_nairong2;?>"></input>
			
			<select id="xingcheng14_type3" style="clear:left;float:left;width:100px;height:25px;border-radius:5px 0px 0px 5px;border:1px solid #D6D7D7;cursor:pointer;padding-left:8px;margin:20px 0px 0px 0px;">
				<option value="0">选择类型</option>
				<option value="2">交通</option>
				<option value="4">行程</option>
				<option value="3">住宿</option>
				<option value="5">餐饮</option>
			</select>
			<input  type="text" id="xingcheng14_nairong3" style="float:left;width:610px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 7px;" placeholder="请填写内容" value="<?php echo $xingcheng14_nairong3;?>"></input>
			
			<select id="xingcheng14_type4" style="clear:left;float:left;width:100px;height:25px;border-radius:5px 0px 0px 5px;border:1px solid #D6D7D7;cursor:pointer;padding-left:8px;margin:20px 0px 0px 0px;">
				<option value="0">选择类型</option>
				<option value="2">交通</option>
				<option value="4">行程</option>
				<option value="3">住宿</option>
				<option value="5">餐饮</option>
			</select>
			<input  type="text" id="xingcheng14_nairong4" style="float:left;width:610px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 7px;" placeholder="请填写内容" value="<?php echo $xingcheng14_nairong4;?>"></input>
			
			<a style="opacity:0;" id="zisheng_id14"><?php echo $zisheng_id14;?></a><!--自身id标识段，这个很重要-->
			
			<div style="clear:left;width:320px;height:20px;"></div>
			<input style="clear:left;width:148.5px;height:34px;border-radius:2px;background-color:#DA4713;color:#FFFFFF;font-family:微软雅黑;font-size:14px;border:1px;text-align:center; cursor:pointer;margin-top:0px;" value="确认" onclick="up_day_14();" ></input>
			
		<SCRIPT>
		function up_day_14(){
			zisheng_id                =        document.getElementById("zisheng_id13").innerHTML;
			xingcheng14_biaoti        =        document.getElementById("xingcheng14_biaoti").value;
			xingcheng14_type1         =        document.getElementById("xingcheng14_type1").value;
			xingcheng14_nairong1      =        document.getElementById("xingcheng14_nairong1").value;
			xingcheng14_type2         =        document.getElementById("xingcheng14_type2").value;
			xingcheng14_nairong2      =        document.getElementById("xingcheng14_nairong2").value;
			xingcheng14_type3         =        document.getElementById("xingcheng14_type3").value;
			xingcheng14_nairong3      =        document.getElementById("xingcheng14_nairong3").value;
			xingcheng14_type4         =        document.getElementById("xingcheng14_type4").value;
			xingcheng14_nairong4      =        document.getElementById("xingcheng14_nairong4").value;
			
			if(zisheng_id=="undifind"){
				zisheng_id="";
			}
			
			var url="getmessage_all.php?bigtype=21&id=<?php echo $id;?>";
			url=url+"&zisheng_id="+zisheng_id;
			url=url+"&xingcheng14_biaoti="+xingcheng14_biaoti;
			url=url+"&xingcheng14_type1="+xingcheng14_type1;
			url=url+"&xingcheng14_nairong1="+xingcheng14_nairong1;
			url=url+"&xingcheng14_type2="+xingcheng14_type2;
			url=url+"&xingcheng14_nairong2="+xingcheng14_nairong2;
			url=url+"&xingcheng14_type3="+xingcheng14_type3;
			url=url+"&xingcheng14_nairong3="+xingcheng14_nairong3;
			url=url+"&xingcheng14_type4="+xingcheng14_type4;
			url=url+"&xingcheng14_nairong4="+xingcheng14_nairong4;
			$.ajax({
				type:"GET",
				url:url,
				dataType: "json",
				success: function(data){	
					if(data['code']==0001){
						alert(data['reason']);
						window.location.href='index.php?id='+data['id'];  
					}else{
						alert(data['reason']);
					}
				}
			});
			
		}
		</SCRIPT>
		<a style="text-align:center;color:#ff0000;font-family:微软雅黑;font-size:18px;">第十四天所附图片及描述</a>
			<?php
		$i=1;
		$k=1;
		$sql="SELECT * FROM `picture_day_info` WHERE difang_id='$id' and type='1' and day='14' order by id";
		$query = mysql_query($sql);
		$num=mysql_num_rows($query);
		while($row = mysql_fetch_array($query)){
			if($i==1){
				$tupianmiaoshu141=$row['picture_miaoshu'];
			}
			if($i==2){
				$tupianmiaoshu142=$row['picture_miaoshu'];
			}
			if($i==3){
				$tupianmiaoshu143=$row['picture_miaoshu'];
			}
			//$single_kk=$row['key'];
		?>
		<div style="float:left;width:320px;height:150px;margin:10px 0px 0px 10px;background-image:url(<?php echo $row['picture_path'];?>);background-repeat:repeat;background-size:100% 100%;">
			<form action="upload_file1.php" method="post" enctype="multipart/form-data" id="upload_user_img15<?php echo $k;?>">
				<label for="file" style="opacity: 0;">Filename:</label>
				<input type="file" name="file" id="file" style="float:left;width:320px;height:150px;text-align:center;border:1px solid #DA4713;color:#DA4713;font-family:微软雅黑;font-size:14px;border-radius:3px;margin-top:0px;margin-left:0px;opacity: 0;" onchange="change_picture15<?php echo $k;?>()"></input>
				<input name="id" value="<?php echo $id;?>" style="opacity: 0;">
				<input name="bigtype113<?php echo (string)($i);?>" value="1" style="opacity: 0;">
				<input name="is_add113<?php echo (string)($i);?>"  value="<? echo $row['id'];?>" style="opacity: 0;">
				<input name="day113<?php echo (string)($i);?>"  value="14" style="opacity: 0;">
			</form>
		</div>
		
		<?php
		    $i++;
			$k++;
		}
		?>
		<?php
		//补全3张图片
		for($i=0;$i<3-$num;$i++){
		?>
		<div style="float:left;width:320px;height:150px;background-color:#FFFFFF;margin:10px 0px 0px 10px;border:1px solid #C9CACA;padding:64px 0 0 88px;">
			<input style="width:145px;height:23px;text-align:center;border:1px solid #DA4713;color:#DA4713;font-family:微软雅黑;font-size:14px;border-radius:3px;" value="选择驴行图片"></input>
			<form action="upload_file1.php" method="post" enctype="multipart/form-data" id="upload_user_img15<?php echo $i+$num+1;?>">
				<label for="file" style="opacity: 0;">Filename:</label>
				<input type="file" name="file" id="file" style="width:145px;height:23px;text-align:center;border:1px solid #DA4713;color:#DA4713;font-family:微软雅黑;font-size:14px;border-radius:3px;margin-top:-48px;opacity: 0;" onchange="change_picture15<?php echo $i+$num+1;?>()"></input>
				<input name="id"  value="<?php echo $id;?>" style="opacity: 0;">
				<input name="bigtype113<?php echo (string)($num+$i+1);?>" value="1" style="opacity: 0;">
				<input name="is_add113<?php echo (string)($num+$i+1);?>"  value="<?php $row['id'];?>" style="opacity: 0;">
				<input name="day113<?php echo (string)($num+$i+1);?>"  value="14" style="opacity: 0;">
			</form>
		</div>
		<?php } ?>
		
		<SCRIPT>
		function change_picture151(){
			$("#upload_user_img151").submit();
		}
		function change_picture152(){
			$("#upload_user_img152").submit();
		}
		function change_picture153(){
			$("#upload_user_img153").submit();
		}
		</SCRIPT>
		<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">图片描述1</a>
		<input  type="text" id="tupianmiaoshu141" style="float:left;width:350px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 79px;" placeholder="请填写行程标题" value="<?php echo $tupianmiaoshu141;?>"></input>	
		
		<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">图片描述2</a>
		<input  type="text" id="tupianmiaoshu142" style="float:left;width:350px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 79px;" placeholder="请填写行程标题" value="<?php echo $tupianmiaoshu142;?>"></input>	
		
		<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">图片描述3</a>
		<input  type="text" id="tupianmiaoshu143" style="float:left;width:350px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 79px;" placeholder="请填写行程标题" value="<?php echo $tupianmiaoshu143;?>"></input>	
		
		<div style="clear:left;width:320px;height:20px;"></div>
		<input style="clear:left;width:148.5px;height:34px;border-radius:2px;background-color:#DA4713;color:#FFFFFF;font-family:微软雅黑;font-size:14px;border:1px;text-align:center; cursor:pointer;margin-top:0px;" value="确认" onclick="up_day_picture_14();" ></input>
		<input id="day_biaoshi_141" value="14" style="opacity:0;">
		</div>
		<SCRIPT>
		function up_day_picture_14(){
			day_biaoshi=document.getElementById("day_biaoshi_141").value;
			tupianmiaoshu11=document.getElementById("tupianmiaoshu141").value;
			tupianmiaoshu12=document.getElementById("tupianmiaoshu142").value;
			tupianmiaoshu13=document.getElementById("tupianmiaoshu143").value;
			
			var url="getmessage_all.php?bigtype=19&id=<?php echo $id;?>";
			url=url+"&day_biaoshi="+day_biaoshi;
			url=url+"&tupianmiaoshu11="+tupianmiaoshu11;
			url=url+"&tupianmiaoshu12="+tupianmiaoshu12;
			url=url+"&tupianmiaoshu13="+tupianmiaoshu13;
			$.ajax({
				type:"GET",
				url:url,
				dataType: "json",
				success: function(data){	
					if(data['code']==0001){
						alert(data['reason']);
						window.location.href='index.php?id='+data['id'];  
					}else{
						alert(data['reason']);
					}
				}
			});
			
		}
		</SCRIPT>
		
		
		
		<?php } ?>	
		
		<div style="clear:left;width:320px;height:30px;"></div>
		<p style="clear:left;margin-top:0px;">请确认已经上传旅游项目的各项数据，再进行上传参团须知操作！</p>
		
		<?php
		//查询上次提交的行程须知
		$sql="SELECT * FROM `yonghu_xvzhi` WHERE difang_id='$id'";
			$query = mysql_query($sql);
			while($row = mysql_fetch_array($query)){
				$id_zhisheng_theer    =  $row['id'];//行程id；
				$textarea             =  $row['textarea'];//行程内容；
			}
		
		?>
		<form action="getmessage_all.php" method="post">
			<textarea style="clear:left;float:left;" rows="15" cols="102" id="textarea" name="textarea">
				<?php echo $textarea;?>
			</textarea>
			<a style="clear:left;text-align:center">&nb sp;空格符   < / br>换行符</a>
			
			<input style="clear:left;float:left;" type="reset" name="Submit2" value="重写" />
			<input style="float:left;" type="submit" name="post" value="提交" />
			
			<input style="opacity:0;" id="bigtype" name="bigtype" value="17"></input>
			<input style="opacity:0;" id="difang_id" name="difang_id" value="<?php echo $id?>"></input>
			<input style="opacity:0;" id="id_zhisheng_theer" name="id_zhisheng_theer" value="<?php echo $id_zhisheng_theer;?>"></input>
		</form>
		
		<p style="clear:left;margin-top:0px;">请确认已经上传旅游项目的各项数据，再进行上传目的地介绍操作！</p>
		<?php
		//查询段落信息
			$sql="SELECT * FROM `mudi_duanluo` WHERE difang_id='$id' order by id";
			$query = mysql_query($sql);
			if(mysql_num_rows($query)<1){
				$id_zhishen        = "";
			}else{	
				while($row = mysql_fetch_array($query)){
					$id_zhishen        =$row['id'];
					$mudi_duanluo1=$row['mudi_duanluo1'];
					$mudi_duanluo2=$row['mudi_duanluo2'];
					$mudi_duanluo3=$row['mudi_duanluo3'];
					$mudi_duanluo4=$row['mudi_duanluo4'];
				}
			}
		?>
		<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">段落1</a>
		<input  type="text" id="mudi_duanluo1" style="float:left;width:461px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 7px;" placeholder="请填写段落内容" value="<?php echo $mudi_duanluo1;?>"></input>

		
		<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">段落2</a>
		<input  type="text" id="mudi_duanluo2" style="float:left;width:461px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 7px;" placeholder="请填写段落内容" value="<?php echo $mudi_duanluo2;?>"></input>
		
		
		<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">段落3</a>
		<input  type="text" id="mudi_duanluo3" style="float:left;width:461px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 7px;" placeholder="请填写段落内容" value="<?php echo $mudi_duanluo3;?>"></input>
		
		
		<a style="clear:left;float:left;color:#595757;font-family:微软雅黑;font-size:14px;margin:20px 0px 0px 0px;">段落4</a>
		<input  type="text" id="mudi_duanluo4" style="float:left;width:461px;height:25px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;border-radius:3px;margin:20px 0px 0px 7px;" placeholder="请填写段落内容" value="<?php echo $mudi_duanluo4;?>"></input>
		
		<a style="opacity:0;" id="id_mudi_duanluo"><?php echo $id_zhishen;?></a>
		<div style="clear:left;width:320px;height:20px;"></div>
		<input style="clear:left;width:148.5px;height:34px;border-radius:2px;background-color:#DA4713;color:#FFFFFF;font-family:微软雅黑;font-size:14px;border:1px;text-align:center; cursor:pointer;margin-top:0px;" value="确认" onclick="up_date_mudi_duanluo_sdf();" ></input>
		
		
		<!--底部显示图片(8张以内)-->
		<a style="clear:left;text-align:center;color:#DA4713;font-family:微软雅黑;font-size:18px;">底部显示图片(8张以内)</a>
		<?php
		$i=2;
		$k=1;
		$sql="SELECT * FROM `picture_xiangmu_up` WHERE difang_id='$id' and type='2' order by id";
		$query = mysql_query($sql);
		$num=mysql_num_rows($query);
		while($row = mysql_fetch_array($query)){
			//$single_kk=$row['key'];
		?>
		<div style="float:left;width:320px;height:150px;margin:10px 0px 0px 10px;background-image:url(<?php echo $row['Picture_paht'];?>);background-repeat:repeat;background-size:100% 100%;">
			<form action="upload_file.php" method="post" enctype="multipart/form-data" id="upload_user_img1<?php echo $k;?>">
				<label for="file" style="opacity: 0;">Filename:</label>
				<input type="file" name="file" id="file" style="float:left;width:320px;height:150px;text-align:center;border:1px solid #DA4713;color:#DA4713;font-family:微软雅黑;font-size:14px;border-radius:3px;margin-top:0px;margin-left:0px;opacity: 0;" onchange="change_picture1<?php echo (string)($k);?>()"></input>
				<input name="id" id="id" value="<?php echo $id;?>" style="opacity: 0;">
				<input name="bigtype1<?php echo (string)($i);?>" id="bigtype1<?php echo (string)($i);?>" value="2" style="opacity: 0;">
				<input name="is_add1<?php echo (string)($i);?>" id="is_add1<?php echo (string)($i);?>" value="<? echo $row['id'];?>" style="opacity: 0;">
			</form>
		</div>
		
		<?php
		    $i++;
			$k++;
		}
		?>
		<?php
		//补全8张图片
		for($i=0;$i<8-$num;$i++){
		?>
		<div style="float:left;width:320px;height:150px;background-color:#FFFFFF;margin:10px 0px 0px 10px;border:1px solid #C9CACA;padding:64px 0 0 88px;">
			<input style="width:145px;height:23px;text-align:center;border:1px solid #DA4713;color:#DA4713;font-family:微软雅黑;font-size:14px;border-radius:3px;" value="选择驴行图片"></input>
			<form action="upload_file.php" method="post" enctype="multipart/form-data" id="upload_user_img1<?php echo $i+$num+1;?>">
				<label for="file" style="opacity: 0;">Filename:</label>
				<input type="file" name="file" id="file" style="width:145px;height:23px;text-align:center;border:1px solid #DA4713;color:#DA4713;font-family:微软雅黑;font-size:14px;border-radius:3px;margin-top:-48px;opacity: 0;" onchange="change_picture1<?php echo (string)($i+$num+1);?>();"></input>
				<input name="id" id="id" value="<?php echo $id;?>" style="opacity: 0;">
				<input name="bigtype1<?php echo (string)($num+$i+2);?>" id="bigtype1<?php echo (string)($num+$i+2);?>" value="2" style="opacity: 0;">
				<input name="is_add1<?php echo (string)($num+$i+2);?>" id="is_add1<?php echo (string)($num+$i+2);?>"  value="" style="opacity: 0;">
			</form>
		</div>
		<?php } ?>
		
		
		<div style="clear:left;width:320px;height:200px;"></div>
	</div>

<script>
/*$(".background_nav_box .background_nav").mouseenter(
	function(){
		$(this).mouseenter("background-color","#2c2c2f");
		}
)*/
$(".background_nav_detail_box").hide()
$(".background_nav_narrow1").hide()
$(document).ready(function() {
		$(".background_nav_box .background_nav").click(
		function(){
		$(".background_nav").css("background-color","#393d40");
		$(this).css("background-color","#2c2c2f");
		$(this).next(".background_nav_detail_box").slideToggle("fast");
	})
});
</script>
<script type="text/javascript">
function up_date_mudi_duanluo_sdf(){
	id_mudi_duanluo      =        document.getElementById("id_mudi_duanluo").innerHTML;
	mudi_duanluo1        =        document.getElementById("mudi_duanluo1").value;
	mudi_duanluo2        =        document.getElementById("mudi_duanluo2").value;
	mudi_duanluo3        =        document.getElementById("mudi_duanluo3").value;
	mudi_duanluo4        =        document.getElementById("mudi_duanluo4").value;
	
	var url="getmessage_all.php?bigtype=18&id=<?php echo $id;?>";
	url=url+"&id_mudi_duanluo="+id_mudi_duanluo;
	url=url+"&mudi_duanluo1="+mudi_duanluo1;
	url=url+"&mudi_duanluo2="+mudi_duanluo2;
	url=url+"&mudi_duanluo3="+mudi_duanluo3;
	url=url+"&mudi_duanluo4="+mudi_duanluo4;
	

	$.ajax({
		type:"GET",
		url:url,
		dataType: "json",
		success: function(data){	
			if(data['code']==0001){
				alert(data['reason']);
				window.location.href='index.php?id='+data['id'];  
			}else{
				alert(data['reason']);
			}
		}
	});
	
}
function up_date_xingcheng_duanluo_12(){
	id_zhishen_duanluo        =        document.getElementById("id_zhishen_duanluo").innerHTML;
	xingcheng_duanluo1        =        document.getElementById("xingcheng_duanluo1").value;
	xingcheng_duanluo2        =        document.getElementById("xingcheng_duanluo2").value;
	xingcheng_duanluo3        =        document.getElementById("xingcheng_duanluo3").value;
	xingcheng_duanluo4        =        document.getElementById("xingcheng_duanluo4").value;
	
	var url="getmessage_all.php?bigtype=16&id=<?php echo $id;?>";
	url=url+"&id_zhishen_duanluo="+id_zhishen_duanluo;
	url=url+"&xingcheng_duanluo1="+xingcheng_duanluo1;
	url=url+"&xingcheng_duanluo2="+xingcheng_duanluo2;
	url=url+"&xingcheng_duanluo3="+xingcheng_duanluo3;
	url=url+"&xingcheng_duanluo4="+xingcheng_duanluo4;

	$.ajax({
		type:"GET",
		url:url,
		dataType: "json",
		success: function(data){	
			if(data['code']==0001){
				alert(data['reason']);
				window.location.href='index.php?id='+data['id'];  
			}else{
				alert(data['reason']);
			}
		}
	});

}

function up_day_12(){
	zisheng_id                =        document.getElementById("zisheng_id12").innerHTML;
	xingcheng12_biaoti        =        document.getElementById("xingcheng12_biaoti").value;
	xingcheng12_type1         =        document.getElementById("xingcheng12_type1").value;
	xingcheng12_nairong1      =        document.getElementById("xingcheng12_nairong1").value;
	xingcheng12_type2         =        document.getElementById("xingcheng12_type2").value;
	xingcheng12_nairong2      =        document.getElementById("xingcheng12_nairong2").value;
	xingcheng12_type3         =        document.getElementById("xingcheng12_type3").value;
	xingcheng12_nairong3      =        document.getElementById("xingcheng12_nairong3").value;
	xingcheng12_type4         =        document.getElementById("xingcheng12_type4").value;
	xingcheng12_nairong4      =        document.getElementById("xingcheng12_nairong4").value;
	
	if(zisheng_id=="undifind"){
		zisheng_id="";
	}
	
	var url="getmessage_all.php?bigtype=15&id=<?php echo $id;?>";
	url=url+"&zisheng_id="+zisheng_id;
	url=url+"&xingcheng12_biaoti="+xingcheng12_biaoti;
	url=url+"&xingcheng12_type1="+xingcheng12_type1;
	url=url+"&xingcheng12_nairong1="+xingcheng12_nairong1;
	url=url+"&xingcheng12_type2="+xingcheng12_type2;
	url=url+"&xingcheng12_nairong2="+xingcheng12_nairong2;
	url=url+"&xingcheng12_type3="+xingcheng12_type3;
	url=url+"&xingcheng12_nairong3="+xingcheng12_nairong3;
	url=url+"&xingcheng12_type4="+xingcheng12_type4;
	url=url+"&xingcheng12_nairong4="+xingcheng12_nairong4;
	$.ajax({
		type:"GET",
		url:url,
		dataType: "json",
		success: function(data){	
			if(data['code']==0001){
				alert(data['reason']);
				window.location.href='index.php?id='+data['id'];  
			}else{
				alert(data['reason']);
			}
		}
	});
	
}

function up_day_11(){
	zisheng_id               =        document.getElementById("zisheng_id11").innerHTML;
	xingcheng11_biaoti        =        document.getElementById("xingcheng11_biaoti").value;
	xingcheng11_type1         =        document.getElementById("xingcheng11_type1").value;
	xingcheng11_nairong1      =        document.getElementById("xingcheng11_nairong1").value;
	xingcheng11_type2         =        document.getElementById("xingcheng11_type2").value;
	xingcheng11_nairong2      =        document.getElementById("xingcheng11_nairong2").value;
	xingcheng11_type3         =        document.getElementById("xingcheng11_type3").value;
	xingcheng11_nairong3      =        document.getElementById("xingcheng11_nairong3").value;
	xingcheng11_type4         =        document.getElementById("xingcheng11_type4").value;
	xingcheng11_nairong4      =        document.getElementById("xingcheng11_nairong4").value;
	
	if(zisheng_id=="undifind"){
		zisheng_id="";
	}
	
	var url="getmessage_all.php?bigtype=14&id=<?php echo $id;?>";
	url=url+"&zisheng_id="+zisheng_id;
	url=url+"&xingcheng11_biaoti="+xingcheng11_biaoti;
	url=url+"&xingcheng11_type1="+xingcheng11_type1;
	url=url+"&xingcheng11_nairong1="+xingcheng11_nairong1;
	url=url+"&xingcheng11_type2="+xingcheng11_type2;
	url=url+"&xingcheng11_nairong2="+xingcheng11_nairong2;
	url=url+"&xingcheng11_type3="+xingcheng11_type3;
	url=url+"&xingcheng11_nairong3="+xingcheng11_nairong3;
	url=url+"&xingcheng11_type4="+xingcheng11_type4;
	url=url+"&xingcheng11_nairong4="+xingcheng11_nairong4;
	$.ajax({
		type:"GET",
		url:url,
		dataType: "json",
		success: function(data){	
			if(data['code']==0001){
				alert(data['reason']);
				window.location.href='index.php?id='+data['id'];  
			}else{
				alert(data['reason']);
			}
		}
	});
	
}
function up_day_10(){
	zisheng_id               =        document.getElementById("zisheng_id10").innerHTML;
	xingcheng10_biaoti        =        document.getElementById("xingcheng10_biaoti").value;
	xingcheng10_type1         =        document.getElementById("xingcheng10_type1").value;
	xingcheng10_nairong1      =        document.getElementById("xingcheng10_nairong1").value;
	xingcheng10_type2         =        document.getElementById("xingcheng10_type2").value;
	xingcheng10_nairong2      =        document.getElementById("xingcheng10_nairong2").value;
	xingcheng10_type3         =        document.getElementById("xingcheng10_type3").value;
	xingcheng10_nairong3      =        document.getElementById("xingcheng10_nairong3").value;
	xingcheng10_type4         =        document.getElementById("xingcheng10_type4").value;
	xingcheng10_nairong4      =        document.getElementById("xingcheng10_nairong4").value;
	
	if(zisheng_id=="undifind"){
		zisheng_id="";
	}
	
	var url="getmessage_all.php?bigtype=13&id=<?php echo $id;?>";
	url=url+"&zisheng_id="+zisheng_id;
	url=url+"&xingcheng10_biaoti="+xingcheng10_biaoti;
	url=url+"&xingcheng10_type1="+xingcheng10_type1;
	url=url+"&xingcheng10_nairong1="+xingcheng10_nairong1;
	url=url+"&xingcheng10_type2="+xingcheng10_type2;
	url=url+"&xingcheng10_nairong2="+xingcheng10_nairong2;
	url=url+"&xingcheng10_type3="+xingcheng10_type3;
	url=url+"&xingcheng10_nairong3="+xingcheng10_nairong3;
	url=url+"&xingcheng10_type4="+xingcheng10_type4;
	url=url+"&xingcheng10_nairong4="+xingcheng10_nairong4;
	$.ajax({
		type:"GET",
		url:url,
		dataType: "json",
		success: function(data){	
			if(data['code']==0001){
				alert(data['reason']);
				window.location.href='index.php?id='+data['id'];  
			}else{
				alert(data['reason']);
			}
		}
	});
	
}
function up_day_9(){
	zisheng_id               =        document.getElementById("zisheng_id9").innerHTML;
	xingcheng9_biaoti        =        document.getElementById("xingcheng9_biaoti").value;
	xingcheng9_type1         =        document.getElementById("xingcheng9_type1").value;
	xingcheng9_nairong1      =        document.getElementById("xingcheng9_nairong1").value;
	xingcheng9_type2         =        document.getElementById("xingcheng9_type2").value;
	xingcheng9_nairong2      =        document.getElementById("xingcheng9_nairong2").value;
	xingcheng9_type3         =        document.getElementById("xingcheng9_type3").value;
	xingcheng9_nairong3      =        document.getElementById("xingcheng9_nairong3").value;
	xingcheng9_type4         =        document.getElementById("xingcheng9_type4").value;
	xingcheng9_nairong4      =        document.getElementById("xingcheng9_nairong4").value;
	
	if(zisheng_id=="undifind"){
		zisheng_id="";
	}
	
	var url="getmessage_all.php?bigtype=12&id=<?php echo $id;?>";
	url=url+"&zisheng_id="+zisheng_id;
	url=url+"&xingcheng9_biaoti="+xingcheng9_biaoti;
	url=url+"&xingcheng9_type1="+xingcheng9_type1;
	url=url+"&xingcheng9_nairong1="+xingcheng9_nairong1;
	url=url+"&xingcheng9_type2="+xingcheng9_type2;
	url=url+"&xingcheng9_nairong2="+xingcheng9_nairong2;
	url=url+"&xingcheng9_type3="+xingcheng9_type3;
	url=url+"&xingcheng9_nairong3="+xingcheng9_nairong3;
	url=url+"&xingcheng9_type4="+xingcheng9_type4;
	url=url+"&xingcheng9_nairong4="+xingcheng9_nairong4;
	$.ajax({
		type:"GET",
		url:url,
		dataType: "json",
		success: function(data){	
			if(data['code']==0001){
				alert(data['reason']);
				window.location.href='index.php?id='+data['id'];  
			}else{
				alert(data['reason']);
			}
		}
	});
	
}
function up_day_8(){
	zisheng_id               =        document.getElementById("zisheng_id8").innerHTML;
	xingcheng8_biaoti        =        document.getElementById("xingcheng8_biaoti").value;
	xingcheng8_type1         =        document.getElementById("xingcheng8_type1").value;
	xingcheng8_nairong1      =        document.getElementById("xingcheng8_nairong1").value;
	xingcheng8_type2         =        document.getElementById("xingcheng8_type2").value;
	xingcheng8_nairong2      =        document.getElementById("xingcheng8_nairong2").value;
	xingcheng8_type3         =        document.getElementById("xingcheng8_type3").value;
	xingcheng8_nairong3      =        document.getElementById("xingcheng8_nairong3").value;
	xingcheng8_type4         =        document.getElementById("xingcheng8_type4").value;
	xingcheng8_nairong4      =        document.getElementById("xingcheng8_nairong4").value;
	
	if(zisheng_id=="undifind"){
		zisheng_id="";
	}
	
	var url="getmessage_all.php?bigtype=11&id=<?php echo $id;?>";
	url=url+"&zisheng_id="+zisheng_id;
	url=url+"&xingcheng8_biaoti="+xingcheng8_biaoti;
	url=url+"&xingcheng8_type1="+xingcheng8_type1;
	url=url+"&xingcheng8_nairong1="+xingcheng8_nairong1;
	url=url+"&xingcheng8_type2="+xingcheng8_type2;
	url=url+"&xingcheng8_nairong2="+xingcheng8_nairong2;
	url=url+"&xingcheng8_type3="+xingcheng8_type3;
	url=url+"&xingcheng8_nairong3="+xingcheng8_nairong3;
	url=url+"&xingcheng8_type4="+xingcheng8_type4;
	url=url+"&xingcheng8_nairong4="+xingcheng8_nairong4;
	$.ajax({
		type:"GET",
		url:url,
		dataType: "json",
		success: function(data){	
			if(data['code']==0001){
				alert(data['reason']);
				window.location.href='index.php?id='+data['id'];  
			}else{
				alert(data['reason']);
			}
		}
	});
	
}
function up_day_7(){
	zisheng_id               =        document.getElementById("zisheng_id7").innerHTML;
	xingcheng7_biaoti        =        document.getElementById("xingcheng7_biaoti").value;
	xingcheng7_type1         =        document.getElementById("xingcheng7_type1").value;
	xingcheng7_nairong1      =        document.getElementById("xingcheng7_nairong1").value;
	xingcheng7_type2         =        document.getElementById("xingcheng7_type2").value;
	xingcheng7_nairong2      =        document.getElementById("xingcheng7_nairong2").value;
	xingcheng7_type3         =        document.getElementById("xingcheng7_type3").value;
	xingcheng7_nairong3      =        document.getElementById("xingcheng7_nairong3").value;
	xingcheng7_type4         =        document.getElementById("xingcheng7_type4").value;
	xingcheng7_nairong4      =        document.getElementById("xingcheng7_nairong4").value;
	
	if(zisheng_id=="undifind"){
		zisheng_id="";
	}
	
	var url="getmessage_all.php?bigtype=10&id=<?php echo $id;?>";
	url=url+"&zisheng_id="+zisheng_id;
	url=url+"&xingcheng7_biaoti="+xingcheng7_biaoti;
	url=url+"&xingcheng7_type1="+xingcheng7_type1;
	url=url+"&xingcheng7_nairong1="+xingcheng7_nairong1;
	url=url+"&xingcheng7_type2="+xingcheng7_type2;
	url=url+"&xingcheng7_nairong2="+xingcheng7_nairong2;
	url=url+"&xingcheng7_type3="+xingcheng7_type3;
	url=url+"&xingcheng7_nairong3="+xingcheng7_nairong3;
	url=url+"&xingcheng7_type4="+xingcheng7_type4;
	url=url+"&xingcheng7_nairong4="+xingcheng7_nairong4;
	$.ajax({
		type:"GET",
		url:url,
		dataType: "json",
		success: function(data){	
			if(data['code']==0001){
				alert(data['reason']);
				window.location.href='index.php?id='+data['id'];  
			}else{
				alert(data['reason']);
			}
		}
	});
	
}
function up_day_6(){
	//上传第一天数据
	zisheng_id               =        document.getElementById("zisheng_id6").innerHTML;
	xingcheng6_biaoti        =        document.getElementById("xingcheng6_biaoti").value;
	xingcheng6_type1         =        document.getElementById("xingcheng6_type1").value;
	xingcheng6_nairong1      =        document.getElementById("xingcheng6_nairong1").value;
	xingcheng6_type2         =        document.getElementById("xingcheng6_type2").value;
	xingcheng6_nairong2      =        document.getElementById("xingcheng6_nairong2").value;
	xingcheng6_type3         =        document.getElementById("xingcheng6_type3").value;
	xingcheng6_nairong3      =        document.getElementById("xingcheng6_nairong3").value;
	xingcheng6_type4         =        document.getElementById("xingcheng6_type4").value;
	xingcheng6_nairong4      =        document.getElementById("xingcheng6_nairong4").value;
	
	if(zisheng_id=="undifind"){
		zisheng_id="";
	}
	
	var url="getmessage_all.php?bigtype=9&id=<?php echo $id;?>";
	url=url+"&zisheng_id="+zisheng_id;
	url=url+"&xingcheng6_biaoti="+xingcheng6_biaoti;
	url=url+"&xingcheng6_type1="+xingcheng6_type1;
	url=url+"&xingcheng6_nairong1="+xingcheng6_nairong1;
	url=url+"&xingcheng6_type2="+xingcheng6_type2;
	url=url+"&xingcheng6_nairong2="+xingcheng6_nairong2;
	url=url+"&xingcheng6_type3="+xingcheng6_type3;
	url=url+"&xingcheng6_nairong3="+xingcheng6_nairong3;
	url=url+"&xingcheng6_type4="+xingcheng6_type4;
	url=url+"&xingcheng6_nairong4="+xingcheng6_nairong4;
	$.ajax({
		type:"GET",
		url:url,
		dataType: "json",
		success: function(data){	
			if(data['code']==0001){
				alert(data['reason']);
				window.location.href='index.php?id='+data['id'];  
			}else{
				alert(data['reason']);
			}
		}
	});
	
}
function up_day_5(){
	//上传第一天数据
	zisheng_id               =        document.getElementById("zisheng_id5").innerHTML;
	xingcheng5_biaoti        =        document.getElementById("xingcheng5_biaoti").value;
	xingcheng5_type1         =        document.getElementById("xingcheng5_type1").value;
	xingcheng5_nairong1      =        document.getElementById("xingcheng5_nairong1").value;
	xingcheng5_type2         =        document.getElementById("xingcheng5_type2").value;
	xingcheng5_nairong2      =        document.getElementById("xingcheng5_nairong2").value;
	xingcheng5_type3         =        document.getElementById("xingcheng5_type3").value;
	xingcheng5_nairong3      =        document.getElementById("xingcheng5_nairong3").value;
	xingcheng5_type4         =        document.getElementById("xingcheng5_type4").value;
	xingcheng5_nairong4      =        document.getElementById("xingcheng5_nairong4").value;
	
	if(zisheng_id=="undifind"){
		zisheng_id="";
	}
	
	var url="getmessage_all.php?bigtype=8&id=<?php echo $id;?>";
	url=url+"&zisheng_id="+zisheng_id;
	url=url+"&xingcheng5_biaoti="+xingcheng5_biaoti;
	url=url+"&xingcheng5_type1="+xingcheng5_type1;
	url=url+"&xingcheng5_nairong1="+xingcheng5_nairong1;
	url=url+"&xingcheng5_type2="+xingcheng5_type2;
	url=url+"&xingcheng5_nairong2="+xingcheng5_nairong2;
	url=url+"&xingcheng5_type3="+xingcheng5_type3;
	url=url+"&xingcheng5_nairong3="+xingcheng5_nairong3;
	url=url+"&xingcheng5_type4="+xingcheng5_type4;
	url=url+"&xingcheng5_nairong4="+xingcheng5_nairong4;
	$.ajax({
		type:"GET",
		url:url,
		dataType: "json",
		success: function(data){	
			if(data['code']==0001){
				alert(data['reason']);
				window.location.href='index.php?id='+data['id'];  
			}else{
				alert(data['reason']);
			}
		}
	});
	
}
function up_day_4(){
	//上传第一天数据
	zisheng_id               =        document.getElementById("zisheng_id4").innerHTML;
	xingcheng4_biaoti        =        document.getElementById("xingcheng4_biaoti").value;
	xingcheng4_type1         =        document.getElementById("xingcheng4_type1").value;
	xingcheng4_nairong1      =        document.getElementById("xingcheng4_nairong1").value;
	xingcheng4_type2         =        document.getElementById("xingcheng4_type2").value;
	xingcheng4_nairong2      =        document.getElementById("xingcheng4_nairong2").value;
	xingcheng4_type3         =        document.getElementById("xingcheng4_type3").value;
	xingcheng4_nairong3      =        document.getElementById("xingcheng4_nairong3").value;
	xingcheng4_type4         =        document.getElementById("xingcheng4_type4").value;
	xingcheng4_nairong4      =        document.getElementById("xingcheng4_nairong4").value;
	
	if(zisheng_id=="undifind"){
		zisheng_id="";
	}
	
	var url="getmessage_all.php?bigtype=7&id=<?php echo $id;?>";
	url=url+"&zisheng_id="+zisheng_id;
	url=url+"&xingcheng4_biaoti="+xingcheng4_biaoti;
	url=url+"&xingcheng4_type1="+xingcheng4_type1;
	url=url+"&xingcheng4_nairong1="+xingcheng4_nairong1;
	url=url+"&xingcheng4_type2="+xingcheng4_type2;
	url=url+"&xingcheng4_nairong2="+xingcheng4_nairong2;
	url=url+"&xingcheng4_type3="+xingcheng4_type3;
	url=url+"&xingcheng4_nairong3="+xingcheng4_nairong3;
	url=url+"&xingcheng4_type4="+xingcheng4_type4;
	url=url+"&xingcheng4_nairong4="+xingcheng4_nairong4;
	$.ajax({
		type:"GET",
		url:url,
		dataType: "json",
		success: function(data){	
			if(data['code']==0001){
				alert(data['reason']);
				window.location.href='index.php?id='+data['id'];  
			}else{
				alert(data['reason']);
			}
		}
	});
	
}

function up_day_3(){
	//上传第一天数据
	zisheng_id               =        document.getElementById("zisheng_id3").innerHTML;
	xingcheng3_biaoti        =        document.getElementById("xingcheng3_biaoti").value;
	xingcheng3_type1         =        document.getElementById("xingcheng3_type1").value;
	xingcheng3_nairong1      =        document.getElementById("xingcheng3_nairong1").value;
	xingcheng3_type2         =        document.getElementById("xingcheng3_type2").value;
	xingcheng3_nairong2      =        document.getElementById("xingcheng3_nairong2").value;
	xingcheng3_type3         =        document.getElementById("xingcheng3_type3").value;
	xingcheng3_nairong3      =        document.getElementById("xingcheng3_nairong3").value;
	xingcheng3_type4         =        document.getElementById("xingcheng3_type4").value;
	xingcheng3_nairong4      =        document.getElementById("xingcheng3_nairong4").value;
	
	if(zisheng_id=="undifind"){
		zisheng_id="";
	}
	
	var url="getmessage_all.php?bigtype=6&id=<?php echo $id;?>";
	url=url+"&zisheng_id="+zisheng_id;
	url=url+"&xingcheng3_biaoti="+xingcheng3_biaoti;
	url=url+"&xingcheng3_type1="+xingcheng3_type1;
	url=url+"&xingcheng3_nairong1="+xingcheng3_nairong1;
	url=url+"&xingcheng3_type2="+xingcheng3_type2;
	url=url+"&xingcheng3_nairong2="+xingcheng3_nairong2;
	url=url+"&xingcheng3_type3="+xingcheng3_type3;
	url=url+"&xingcheng3_nairong3="+xingcheng3_nairong3;
	url=url+"&xingcheng3_type4="+xingcheng3_type4;
	url=url+"&xingcheng3_nairong4="+xingcheng3_nairong4;
	$.ajax({
		type:"GET",
		url:url,
		dataType: "json",
		success: function(data){	
			if(data['code']==0001){
				alert(data['reason']);
				window.location.href='index.php?id='+data['id'];  
			}else{
				alert(data['reason']);
			}
		}
	});
	
}
function up_day_two(){
	//上传第一天数据
	zisheng_id               =        document.getElementById("zisheng_id2").innerHTML;
	xingcheng2_biaoti        =        document.getElementById("xingcheng2_biaoti").value;
	xingcheng2_type1         =        document.getElementById("xingcheng2_type1").value;
	xingcheng2_nairong1      =        document.getElementById("xingcheng2_nairong1").value;
	xingcheng2_type2         =        document.getElementById("xingcheng2_type2").value;
	xingcheng2_nairong2      =        document.getElementById("xingcheng2_nairong2").value;
	xingcheng2_type3         =        document.getElementById("xingcheng2_type3").value;
	xingcheng2_nairong3      =        document.getElementById("xingcheng2_nairong3").value;
	xingcheng2_type4         =        document.getElementById("xingcheng2_type4").value;
	xingcheng2_nairong4      =        document.getElementById("xingcheng2_nairong4").value;
	
	if(zisheng_id=="undifind"){
		zisheng_id="";
	}
	
	var url="getmessage_all.php?bigtype=5&id=<?php echo $id;?>";
	url=url+"&zisheng_id="+zisheng_id;
	url=url+"&xingcheng2_biaoti="+xingcheng2_biaoti;
	url=url+"&xingcheng2_type1="+xingcheng2_type1;
	url=url+"&xingcheng2_nairong1="+xingcheng2_nairong1;
	url=url+"&xingcheng2_type2="+xingcheng2_type2;
	url=url+"&xingcheng2_nairong2="+xingcheng2_nairong2;
	url=url+"&xingcheng2_type3="+xingcheng2_type3;
	url=url+"&xingcheng2_nairong3="+xingcheng2_nairong3;
	url=url+"&xingcheng2_type4="+xingcheng2_type4;
	url=url+"&xingcheng2_nairong4="+xingcheng2_nairong4;
	
	$.ajax({
		type:"GET",
		url:url,
		dataType: "json",
		success: function(data){	
			if(data['code']==0001){
				alert(data['reason']);
				window.location.href='index.php?id='+data['id'];  
			}else{
				alert(data['reason']);
			}
		}
	});
	
}
function up_day_one(){
	//上传第一天数据
	zisheng_id               =        document.getElementById("zisheng_id1").innerHTML;
	xingcheng1_biaoti        =        document.getElementById("xingcheng1_biaoti").value;
	xingcheng1_type1         =        document.getElementById("xingcheng1_type1").value;
	xingcheng1_nairong1      =        document.getElementById("xingcheng1_nairong1").value;
	xingcheng1_type2         =        document.getElementById("xingcheng1_type2").value;
	xingcheng1_nairong2      =        document.getElementById("xingcheng1_nairong2").value;
	xingcheng1_type3         =        document.getElementById("xingcheng1_type3").value;
	xingcheng1_nairong3      =        document.getElementById("xingcheng1_nairong3").value;
	xingcheng1_type4         =        document.getElementById("xingcheng1_type4").value;
	xingcheng1_nairong4      =        document.getElementById("xingcheng1_nairong4").value;
	
	if(zisheng_id=="undifind"){
		zisheng_id="";
	}
	
	var url="getmessage_all.php?bigtype=4&id=<?php echo $id;?>";
	url=url+"&zisheng_id="+zisheng_id;
	url=url+"&xingcheng1_biaoti="+xingcheng1_biaoti;
	url=url+"&xingcheng1_type1="+xingcheng1_type1;
	url=url+"&xingcheng1_nairong1="+xingcheng1_nairong1;
	url=url+"&xingcheng1_type2="+xingcheng1_type2;
	url=url+"&xingcheng1_nairong2="+xingcheng1_nairong2;
	url=url+"&xingcheng1_type3="+xingcheng1_type3;
	url=url+"&xingcheng1_nairong3="+xingcheng1_nairong3;
	url=url+"&xingcheng1_type4="+xingcheng1_type4;
	url=url+"&xingcheng1_nairong4="+xingcheng1_nairong4;
	
	$.ajax({
		type:"GET",
		url:url,
		dataType: "json",
		success: function(data){	
			if(data['code']==0001){
				alert(data['reason']);
				window.location.href='index.php?id='+data['id'];  
			}else{
				alert(data['reason']);
			}
		}
	});
	
}


function up_date_tese(){
	duanluo1         =        document.getElementById("duanluo1").value;
	duanluo2         =        document.getElementById("duanluo2").value;     
    duanluo3         =        document.getElementById("duanluo3").value;
	duanluo4         =        document.getElementById("duanluo4").value;  
	
	sunxv1          =        document.getElementById("sunxv1").value;
	sunxv2          =        document.getElementById("sunxv2").value;
	sunxv3          =        document.getElementById("sunxv3").value;
	sunxv4          =        document.getElementById("sunxv4").value;

	var url="getmessage_all.php?bigtype=3&id=<?php echo $id;?>";
	url=url+"&duanluo1="+duanluo1;
	url=url+"&duanluo2="+duanluo2;
	url=url+"&duanluo3="+duanluo3;
	url=url+"&duanluo4="+duanluo4;
	
	url=url+"&sunxv1="+sunxv1;
	url=url+"&sunxv2="+sunxv2;
	url=url+"&sunxv3="+sunxv3;
	url=url+"&sunxv4="+sunxv4;
	
	//alert(url);
	$.ajax({
		type:"GET",
		url:url,
		dataType: "json",
		success: function(data){	
			if(data['code']==0001){
				alert(data['reason']);
				window.location.href='index.php?id='+data['id'];  
			}else{
				alert(data['reason']);
			}
		}
	});
}


function up_date(){
	difang_type         =        document.getElementById("difang_type").value;     
    biaoti        		=        document.getElementById("biaoti").value;
	jitian         		=        document.getElementById("jitian").value;  
	fanduos        		=        document.getElementById("fanduos").value;
	danfangcha          =        document.getElementById("danfangcha").value;
	
	banqi1          	=        document.getElementById("banqi1").value;
	chengren1         	=        document.getElementById("chengren1").value;
	ertong1          	=        document.getElementById("ertong1").value;
	up_renshu1          =        document.getElementById("up_renshu1").value;
	banqi2          	=        document.getElementById("banqi2").value;
	chengren2         	=        document.getElementById("chengren2").value;
	ertong2          	=        document.getElementById("ertong2").value;
	up_renshu2          =        document.getElementById("up_renshu2").value;
	banqi3          	=        document.getElementById("banqi3").value;
	chengren3         	=        document.getElementById("chengren3").value;
	ertong3          	=        document.getElementById("ertong3").value;
	up_renshu3          =        document.getElementById("up_renshu3").value;

	var url="getmessage_all.php?bigtype=1&id=<?php echo $id;?>";
	url=url+"&difang_type="+difang_type;
	url=url+"&biaoti="+biaoti;
	url=url+"&jitian="+jitian;
	url=url+"&fanduos="+fanduos;
	url=url+"&danfangcha="+danfangcha;
	
	url=url+"&banqi1="+banqi1;
	url=url+"&chengren1="+chengren1;
	url=url+"&ertong1="+ertong1;
	url=url+"&up_renshu1="+up_renshu1;
	url=url+"&banqi2="+banqi2;
	url=url+"&chengren2="+chengren2;
	url=url+"&ertong2="+ertong2;
	url=url+"&up_renshu2="+up_renshu2;
	url=url+"&banqi3="+banqi3;
	url=url+"&chengren3="+chengren3;
	url=url+"&ertong3="+ertong3;
	url=url+"&up_renshu3="+up_renshu3;
	
	$.ajax({
		type:"GET",
		url:url,
		dataType: "json",
		success: function(data){	
			if(data['code']==0001){
				alert(data['reason']);
				window.location.href='index.php?id='+data['id'];  
			}else{
				alert(data['reason']);
			}
		}
	});
}


function change_picture(){
	$("#upload_user_img").submit();
}
function change_picture11(){
	$("#upload_user_img11").submit();
}
function change_picture12(){
	$("#upload_user_img12").submit();
}
function change_picture13(){
	$("#upload_user_img13").submit();
}
function change_picture14(){
	$("#upload_user_img14").submit();
}
function change_picture15(){
	$("#upload_user_img15").submit();
}
function change_picture16(){
	$("#upload_user_img16").submit();
}
function change_picture17(){
	$("#upload_user_img17").submit();
}
function change_picture18(){
	$("#upload_user_img18").submit();
}

function altRows(id){
    if(document.getElementsByTagName){  
        
        var table = document.getElementById(id);  
        var rows = table.getElementsByTagName("tr"); 
         
        for(i = 0; i < rows.length; i++){          
            if(i % 2 == 0){
                rows[i].className = "evenrowcolor";
            }else{
                rows[i].className = "oddrowcolor";
            }      
        }
    }
}

window.onload=function(){
	
	var selectObj=document.getElementById("difang_type");
	for (i=0; i< selectObj.options.length; i++){
		var curOptObj=selectObj.options[i];
		var curText=curOptObj.value;
		if("<?php echo $difang_type;?>"==curText){
			curOptObj.selected=true;
		}
	}
	var selectObj=document.getElementById("xingcheng1_type1");
	for (i=0; i< selectObj.options.length; i++){
		var curOptObj=selectObj.options[i];
		var curText=curOptObj.value;
		if("<?php echo $xingcheng1_type1;?>"==curText){
			curOptObj.selected=true;
		}
	}
	var selectObj=document.getElementById("xingcheng1_type2");
	for (i=0; i< selectObj.options.length; i++){
		var curOptObj=selectObj.options[i];
		var curText=curOptObj.value;
		if("<?php echo $xingcheng1_type2;?>"==curText){
			curOptObj.selected=true;
		}
	}
	var selectObj=document.getElementById("xingcheng1_type3");
	for (i=0; i< selectObj.options.length; i++){
		var curOptObj=selectObj.options[i];
		var curText=curOptObj.value;
		if("<?php echo $xingcheng1_type3;?>"==curText){
			curOptObj.selected=true;
		}
	}
	var selectObj=document.getElementById("xingcheng1_type4");
	for (i=0; i< selectObj.options.length; i++){
		var curOptObj=selectObj.options[i];
		var curText=curOptObj.value;
		if("<?php echo $xingcheng1_type4;?>"==curText){
			curOptObj.selected=true;
		}
	}
	
	
	var selectObj=document.getElementById("xingcheng2_type1");
	for (i=0; i< selectObj.options.length; i++){
		var curOptObj=selectObj.options[i];
		var curText=curOptObj.value;
		if("<?php echo $xingcheng2_type1;?>"==curText){
			curOptObj.selected=true;
		}
	}
	var selectObj=document.getElementById("xingcheng2_type2");
	for (i=0; i< selectObj.options.length; i++){
		var curOptObj=selectObj.options[i];
		var curText=curOptObj.value;
		if("<?php echo $xingcheng2_type2;?>"==curText){
			curOptObj.selected=true;
		}
	}
	var selectObj=document.getElementById("xingcheng2_type3");
	for (i=0; i< selectObj.options.length; i++){
		var curOptObj=selectObj.options[i];
		var curText=curOptObj.value;
		if("<?php echo $xingcheng2_type3;?>"==curText){
			curOptObj.selected=true;
		}
	}
	var selectObj=document.getElementById("xingcheng2_type4");
	for (i=0; i< selectObj.options.length; i++){
		var curOptObj=selectObj.options[i];
		var curText=curOptObj.value;
		if("<?php echo $xingcheng2_type4;?>"==curText){
			curOptObj.selected=true;
		}
	}
	
	var selectObj=document.getElementById("xingcheng3_type1");
	for (i=0; i< selectObj.options.length; i++){
		var curOptObj=selectObj.options[i];
		var curText=curOptObj.value;
		if("<?php echo $xingcheng3_type1;?>"==curText){
			curOptObj.selected=true;
		}
	}
	var selectObj=document.getElementById("xingcheng3_type2");
	for (i=0; i< selectObj.options.length; i++){
		var curOptObj=selectObj.options[i];
		var curText=curOptObj.value;
		if("<?php echo $xingcheng3_type2;?>"==curText){
			curOptObj.selected=true;
		}
	}
	var selectObj=document.getElementById("xingcheng3_type3");
	for (i=0; i< selectObj.options.length; i++){
		var curOptObj=selectObj.options[i];
		var curText=curOptObj.value;
		if("<?php echo $xingcheng3_type3;?>"==curText){
			curOptObj.selected=true;
		}
	}
	var selectObj=document.getElementById("xingcheng3_type4");
	for (i=0; i< selectObj.options.length; i++){
		var curOptObj=selectObj.options[i];
		var curText=curOptObj.value;
		if("<?php echo $xingcheng3_type4;?>"==curText){
			curOptObj.selected=true;
		}
	}
	
	var selectObj=document.getElementById("xingcheng4_type1");
	for (i=0; i< selectObj.options.length; i++){
		var curOptObj=selectObj.options[i];
		var curText=curOptObj.value;
		if("<?php echo $xingcheng4_type1;?>"==curText){
			curOptObj.selected=true;
		}
	}
	var selectObj=document.getElementById("xingcheng4_type2");
	for (i=0; i< selectObj.options.length; i++){
		var curOptObj=selectObj.options[i];
		var curText=curOptObj.value;
		if("<?php echo $xingcheng4_type2;?>"==curText){
			curOptObj.selected=true;
		}
	}
	var selectObj=document.getElementById("xingcheng4_type3");
	for (i=0; i< selectObj.options.length; i++){
		var curOptObj=selectObj.options[i];
		var curText=curOptObj.value;
		if("<?php echo $xingcheng4_type3;?>"==curText){
			curOptObj.selected=true;
		}
	}
	var selectObj=document.getElementById("xingcheng4_type4");
	for (i=0; i< selectObj.options.length; i++){
		var curOptObj=selectObj.options[i];
		var curText=curOptObj.value;
		if("<?php echo $xingcheng4_type4;?>"==curText){
			curOptObj.selected=true;
		}
	}
	
	
	
	var selectObj=document.getElementById("xingcheng5_type1");
	for (i=0; i< selectObj.options.length; i++){
		var curOptObj=selectObj.options[i];
		var curText=curOptObj.value;
		if("<?php echo $xingcheng5_type1;?>"==curText){
			curOptObj.selected=true;
		}
	}
	var selectObj=document.getElementById("xingcheng5_type2");
	for (i=0; i< selectObj.options.length; i++){
		var curOptObj=selectObj.options[i];
		var curText=curOptObj.value;
		if("<?php echo $xingcheng5_type2;?>"==curText){
			curOptObj.selected=true;
		}
	}
	var selectObj=document.getElementById("xingcheng5_type3");
	for (i=0; i< selectObj.options.length; i++){
		var curOptObj=selectObj.options[i];
		var curText=curOptObj.value;
		if("<?php echo $xingcheng5_type3;?>"==curText){
			curOptObj.selected=true;
		}
	}
	var selectObj=document.getElementById("xingcheng5_type4");
	for (i=0; i< selectObj.options.length; i++){
		var curOptObj=selectObj.options[i];
		var curText=curOptObj.value;
		if("<?php echo $xingcheng5_type4;?>"==curText){
			curOptObj.selected=true;
		}
	}
	
	
	
	var selectObj=document.getElementById("xingcheng6_type1");
	for (i=0; i< selectObj.options.length; i++){
		var curOptObj=selectObj.options[i];
		var curText=curOptObj.value;
		if("<?php echo $xingcheng6_type1;?>"==curText){
			curOptObj.selected=true;
		}
	}
	var selectObj=document.getElementById("xingcheng6_type2");
	for (i=0; i< selectObj.options.length; i++){
		var curOptObj=selectObj.options[i];
		var curText=curOptObj.value;
		if("<?php echo $xingcheng6_type2;?>"==curText){
			curOptObj.selected=true;
		}
	}
	var selectObj=document.getElementById("xingcheng6_type3");
	for (i=0; i< selectObj.options.length; i++){
		var curOptObj=selectObj.options[i];
		var curText=curOptObj.value;
		if("<?php echo $xingcheng6_type3;?>"==curText){
			curOptObj.selected=true;
		}
	}
	var selectObj=document.getElementById("xingcheng6_type4");
	for (i=0; i< selectObj.options.length; i++){
		var curOptObj=selectObj.options[i];
		var curText=curOptObj.value;
		if("<?php echo $xingcheng6_type4;?>"==curText){
			curOptObj.selected=true;
		}
	}
	
	
	
	
	var selectObj=document.getElementById("xingcheng7_type1");
	for (i=0; i< selectObj.options.length; i++){
		var curOptObj=selectObj.options[i];
		var curText=curOptObj.value;
		if("<?php echo $xingcheng7_type1;?>"==curText){
			curOptObj.selected=true;
		}
	}
	var selectObj=document.getElementById("xingcheng7_type2");
	for (i=0; i< selectObj.options.length; i++){
		var curOptObj=selectObj.options[i];
		var curText=curOptObj.value;
		if("<?php echo $xingcheng7_type2;?>"==curText){
			curOptObj.selected=true;
		}
	}
	var selectObj=document.getElementById("xingcheng7_type3");
	for (i=0; i< selectObj.options.length; i++){
		var curOptObj=selectObj.options[i];
		var curText=curOptObj.value;
		if("<?php echo $xingcheng7_type3;?>"==curText){
			curOptObj.selected=true;
		}
	}
	var selectObj=document.getElementById("xingcheng7_type4");
	for (i=0; i< selectObj.options.length; i++){
		var curOptObj=selectObj.options[i];
		var curText=curOptObj.value;
		if("<?php echo $xingcheng7_type4;?>"==curText){
			curOptObj.selected=true;
		}
	}
	
	
	
	var selectObj=document.getElementById("xingcheng8_type1");
	for (i=0; i< selectObj.options.length; i++){
		var curOptObj=selectObj.options[i];
		var curText=curOptObj.value;
		if("<?php echo $xingcheng8_type1;?>"==curText){
			curOptObj.selected=true;
		}
	}
	var selectObj=document.getElementById("xingcheng8_type2");
	for (i=0; i< selectObj.options.length; i++){
		var curOptObj=selectObj.options[i];
		var curText=curOptObj.value;
		if("<?php echo $xingcheng8_type2;?>"==curText){
			curOptObj.selected=true;
		}
	}
	var selectObj=document.getElementById("xingcheng8_type3");
	for (i=0; i< selectObj.options.length; i++){
		var curOptObj=selectObj.options[i];
		var curText=curOptObj.value;
		if("<?php echo $xingcheng8_type3;?>"==curText){
			curOptObj.selected=true;
		}
	}
	var selectObj=document.getElementById("xingcheng8_type4");
	for (i=0; i< selectObj.options.length; i++){
		var curOptObj=selectObj.options[i];
		var curText=curOptObj.value;
		if("<?php echo $xingcheng8_type4;?>"==curText){
			curOptObj.selected=true;
		}
	}
	
	
	
	var selectObj=document.getElementById("xingcheng9_type1");
	for (i=0; i< selectObj.options.length; i++){
		var curOptObj=selectObj.options[i];
		var curText=curOptObj.value;
		if("<?php echo $xingcheng9_type1;?>"==curText){
			curOptObj.selected=true;
		}
	}
	var selectObj=document.getElementById("xingcheng9_type2");
	for (i=0; i< selectObj.options.length; i++){
		var curOptObj=selectObj.options[i];
		var curText=curOptObj.value;
		if("<?php echo $xingcheng9_type2;?>"==curText){
			curOptObj.selected=true;
		}
	}
	var selectObj=document.getElementById("xingcheng9_type3");
	for (i=0; i< selectObj.options.length; i++){
		var curOptObj=selectObj.options[i];
		var curText=curOptObj.value;
		if("<?php echo $xingcheng9_type3;?>"==curText){
			curOptObj.selected=true;
		}
	}
	var selectObj=document.getElementById("xingcheng9_type4");
	for (i=0; i< selectObj.options.length; i++){
		var curOptObj=selectObj.options[i];
		var curText=curOptObj.value;
		if("<?php echo $xingcheng9_type4;?>"==curText){
			curOptObj.selected=true;
		}
	}
	
	
	
	var selectObj=document.getElementById("xingcheng10_type1");
	for (i=0; i< selectObj.options.length; i++){
		var curOptObj=selectObj.options[i];
		var curText=curOptObj.value;
		if("<?php echo $xingcheng10_type1;?>"==curText){
			curOptObj.selected=true;
		}
	}
	var selectObj=document.getElementById("xingcheng10_type2");
	for (i=0; i< selectObj.options.length; i++){
		var curOptObj=selectObj.options[i];
		var curText=curOptObj.value;
		if("<?php echo $xingcheng10_type2;?>"==curText){
			curOptObj.selected=true;
		}
	}
	var selectObj=document.getElementById("xingcheng10_type3");
	for (i=0; i< selectObj.options.length; i++){
		var curOptObj=selectObj.options[i];
		var curText=curOptObj.value;
		if("<?php echo $xingcheng10_type3;?>"==curText){
			curOptObj.selected=true;
		}
	}
	var selectObj=document.getElementById("xingcheng10_type4");
	for (i=0; i< selectObj.options.length; i++){
		var curOptObj=selectObj.options[i];
		var curText=curOptObj.value;
		if("<?php echo $xingcheng10_type4;?>"==curText){
			curOptObj.selected=true;
		}
	}
	
	
	
	var selectObj=document.getElementById("xingcheng11_type1");
	for (i=0; i< selectObj.options.length; i++){
		var curOptObj=selectObj.options[i];
		var curText=curOptObj.value;
		if("<?php echo $xingcheng11_type1;?>"==curText){
			curOptObj.selected=true;
		}
	}
	var selectObj=document.getElementById("xingcheng11_type2");
	for (i=0; i< selectObj.options.length; i++){
		var curOptObj=selectObj.options[i];
		var curText=curOptObj.value;
		if("<?php echo $xingcheng11_type2;?>"==curText){
			curOptObj.selected=true;
		}
	}
	var selectObj=document.getElementById("xingcheng11_type3");
	for (i=0; i< selectObj.options.length; i++){
		var curOptObj=selectObj.options[i];
		var curText=curOptObj.value;
		if("<?php echo $xingcheng11_type3;?>"==curText){
			curOptObj.selected=true;
		}
	}
	var selectObj=document.getElementById("xingcheng11_type4");
	for (i=0; i< selectObj.options.length; i++){
		var curOptObj=selectObj.options[i];
		var curText=curOptObj.value;
		if("<?php echo $xingcheng11_type4;?>"==curText){
			curOptObj.selected=true;
		}
	}
	
	
	
	var selectObj=document.getElementById("xingcheng12_type1");
	for (i=0; i< selectObj.options.length; i++){
		var curOptObj=selectObj.options[i];
		var curText=curOptObj.value;
		if("<?php echo $xingcheng12_type1;?>"==curText){
			curOptObj.selected=true;
		}
	}
	var selectObj=document.getElementById("xingcheng12_type2");
	for (i=0; i< selectObj.options.length; i++){
		var curOptObj=selectObj.options[i];
		var curText=curOptObj.value;
		if("<?php echo $xingcheng12_type2;?>"==curText){
			curOptObj.selected=true;
		}
	}
	var selectObj=document.getElementById("xingcheng12_type3");
	for (i=0; i< selectObj.options.length; i++){
		var curOptObj=selectObj.options[i];
		var curText=curOptObj.value;
		if("<?php echo $xingcheng12_type3;?>"==curText){
			curOptObj.selected=true;
		}
	}
	var selectObj=document.getElementById("xingcheng12_type4");
	for (i=0; i< selectObj.options.length; i++){
		var curOptObj=selectObj.options[i];
		var curText=curOptObj.value;
		if("<?php echo $xingcheng4_type4;?>"==curText){
			curOptObj.selected=true;
		}
	}
	
	
	var selectObj=document.getElementById("xingcheng13_type1");
	for (i=0; i< selectObj.options.length; i++){
		var curOptObj=selectObj.options[i];
		var curText=curOptObj.value;
		if("<?php echo $xingcheng13_type1;?>"==curText){
			curOptObj.selected=true;
		}
	}
	var selectObj=document.getElementById("xingcheng13_type2");
	for (i=0; i< selectObj.options.length; i++){
		var curOptObj=selectObj.options[i];
		var curText=curOptObj.value;
		if("<?php echo $xingcheng13_type2;?>"==curText){
			curOptObj.selected=true;
		}
	}
	var selectObj=document.getElementById("xingcheng13_type3");
	for (i=0; i< selectObj.options.length; i++){
		var curOptObj=selectObj.options[i];
		var curText=curOptObj.value;
		if("<?php echo $xingcheng13_type3;?>"==curText){
			curOptObj.selected=true;
		}
	}
	var selectObj=document.getElementById("xingcheng13_type4");
	for (i=0; i< selectObj.options.length; i++){
		var curOptObj=selectObj.options[i];
		var curText=curOptObj.value;
		if("<?php echo $xingcheng13_type4;?>"==curText){
			curOptObj.selected=true;
		}
	}
	
	
	var selectObj=document.getElementById("xingcheng14_type1");
	for (i=0; i< selectObj.options.length; i++){
		var curOptObj=selectObj.options[i];
		var curText=curOptObj.value;
		if("<?php echo $xingcheng14_type1;?>"==curText){
			curOptObj.selected=true;
		}
	}
	var selectObj=document.getElementById("xingcheng14_type2");
	for (i=0; i< selectObj.options.length; i++){
		var curOptObj=selectObj.options[i];
		var curText=curOptObj.value;
		if("<?php echo $xingcheng14_type2;?>"==curText){
			curOptObj.selected=true;
		}
	}
	var selectObj=document.getElementById("xingcheng14_type3");
	for (i=0; i< selectObj.options.length; i++){
		var curOptObj=selectObj.options[i];
		var curText=curOptObj.value;
		if("<?php echo $xingcheng14_type3;?>"==curText){
			curOptObj.selected=true;
		}
	}
	var selectObj=document.getElementById("xingcheng14_type4");
	for (i=0; i< selectObj.options.length; i++){
		var curOptObj=selectObj.options[i];
		var curText=curOptObj.value;
		if("<?php echo $xingcheng14_type4;?>"==curText){
			curOptObj.selected=true;
		}
	}
	
	
	

	var selectObj=document.getElementById("xingcheng15_type2");
	for (i=0; i< selectObj.options.length; i++){
		var curOptObj=selectObj.options[i];
		var curText=curOptObj.value;
		if("<?php echo $xingcheng15_type2;?>"==curText){
			curOptObj.selected=true;
		}
	}
	var selectObj=document.getElementById("xingcheng15_type3");
	for (i=0; i< selectObj.options.length; i++){
		var curOptObj=selectObj.options[i];
		var curText=curOptObj.value;
		if("<?php echo $xingcheng15_type3;?>"==curText){
			curOptObj.selected=true;
		}
	}
	var selectObj=document.getElementById("xingcheng15_type4");
	for (i=0; i< selectObj.options.length; i++){
		var curOptObj=selectObj.options[i];
		var curText=curOptObj.value;
		if("<?php echo $xingcheng15_type4;?>"==curText){
			curOptObj.selected=true;
		}
	}
}

function change_difang_type(){
	difang_type=document.getElementById("difang_type").value;
	window.location.href='index.php?id=<?php echo $id;?>&difang_type='+difang_type;
}


$("nav nav-tabs li a").click(
	function(){
		$(this)
		}
)
</script>
</body>
</html>


